Typescript expand selection doesn't properly handle if/else blocks #68112
Labels
javascript
JavaScript support issues
typescript
Typescript support issues
upstream
Issue identified as 'upstream' component related (exists outside of VS Code)
Issue Type: Bug
I expect Expand Selection to expand the selection to the next larger semantically significant block. However, with the cursor in one of the conditional branches, expanding the selection will never step to include only the entire conditional. It instead steps from including an entire branch of the conditional to the body of the function. Along the way it steps through including the branch but with some extraneous curly braces from the other side of the branch, which I think it should never hit.
VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:32:14.164Z)
OS version: Darwin x64 18.2.0
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Extensions (20)
The text was updated successfully, but these errors were encountered: