Skip to content

Bug in multi-cursor text selection when expanding selection by word #178149

@criddell

Description

@criddell

Type: Bug

  1. Paste the following into a text buffer:

DebugUtils.cpp(87) : atlTraceGeneral - 0 - line from (0, 0, 0) to (18.625, 0, 0)
DebugUtils.cpp(87) : atlTraceGeneral - 1 - line from (18.625, 0, 0) to (18.625, 0, 0.1875)
DebugUtils.cpp(87) : atlTraceGeneral - 2 - line from (18.625, 0, 0.1875) to (20.3125, 0, 0.1875)
DebugUtils.cpp(87) : atlTraceGeneral - 3 - line from (20.3125, 0, 0.1875) to (20.3125, 0, 1.9162)
DebugUtils.cpp(87) : atlTraceGeneral - 4 - line from (20.3125, 0, 1.9162) to (18.625, 0, 1.9162)
DebugUtils.cpp(87) : atlTraceGeneral - 5 - arc r=0.375, from (19, 0, 2.2912) to (18.625, 0, 2.6662), center=(18.625, 0, 2.2912)
DebugUtils.cpp(87) : atlTraceGeneral - 6 - line from (18.625, 0, 2.6662) to (18.625, 0, 3.0412)
DebugUtils.cpp(87) : atlTraceGeneral - 7 - line from (18.625, 0, 3.0412) to (18.375, 0, 3.0412)
DebugUtils.cpp(87) : atlTraceGeneral - 8 - line from (18.375, 0, 3.0412) to (18, 0, 2.2912)
DebugUtils.cpp(87) : atlTraceGeneral - 9 - arc r=0.375, from (18, 0, 2.2912) to (17.625, 0, 1.9162), center=(17.625, 0, 2.2912)
DebugUtils.cpp(87) : atlTraceGeneral - 10 - line from (17.625, 0, 1.9162) to (0, 0, 1.9162)
DebugUtils.cpp(87) : atlTraceGeneral - 11 - line from (0, 0, 1.9162) to (0, 0, 0)

  1. Select the word DebugUtils and then type ctrl-shift-L to select all instances of that word.

  2. Pres ctrl-shift-right arrow and the initial cursor will correctly highlight words but all of the other instances do not.

  3. Pres escape to cancel the operation and once again select the word DebugUtils and then type ctrl-shift-L to select all instances.

  4. This time type shift-right arrow to expand the selection one letter at a time and notice that all of the cursors are highlighting.

I believe the behavior in step 3 is broken and in step 5 is working.

VS Code version: Code 1.76.2 (ee2b180, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Xeon(R) W-2255 CPU @ 3.70GHz (20 x 3696)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 71.69GB (43.14GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (26)
Extension Author (truncated) Version
vscode-better-align cho 1.4.1
doxdocgen csc 1.4.0
vscode-autohotkey-plus cwe 2.7.1
vscode-eslint dba 2.4.0
better-cpp-syntax jef 1.17.2
svn-scm joh 2.15.7
vscode-format-context-menu lac 1.0.4
isort ms- 2022.8.0
python ms- 2023.4.1
vscode-pylance ms- 2023.3.30
jupyter ms- 2023.2.1200692131
jupyter-keymap ms- 1.1.0
jupyter-renderers ms- 1.0.15
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-containers ms- 0.282.0
remote-ssh ms- 0.98.0
remote-ssh-edit ms- 0.84.0
remote-wsl ms- 0.76.1
cmake-tools ms- 1.13.45
cpptools ms- 1.14.5
cpptools-extension-pack ms- 1.3.0
powershell ms- 2023.2.1
remote-explorer ms- 0.2.0
cmake twx 0.0.17
rc-script wil 1.0.0

(1 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions