vscode: Home / End (cursorHome / cursorEnd) broken with TS / JS
Type: Bug
Affects source code in language modes Javascript / Typescript. Other language modes not tested.
Since around 1.75.x v1.75.0, with lines that extend beyond the horizontal width of the window / pane (viewport), after a little time the End key no longer brings the cursor into view. When this occurs, I need to hit End multiple times to finally show the text at the cursor position…
Hitting End:
- once: cursor moves to line end, viewport scrolls to the right but not to the line end. Cursor and last characters of the line are hidden from view
- twice: pane scrolls a little further to the right
- third, fourth time etc.: pane scrolls a little further each time and finally shows line end with cursor
The above happens in reverse with the Home key, when cursor is at line end.
The above problem appears after about 15-20 seconds or after some up/down cursoring through a source file causing the viewport to change. Initially everything works fine, but after what seems like some internal process has finished the problem appears.
Cursoring up / down through the file and making edits can cure and also re-cause the problem.
Changing language mode to ‘Plain Text’ cures the problem completely. Switching back to Typescript or Javascript and the problem reappears.
Have run code --disable-extensions but the problem and behaviour described above remain.
VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z) OS version: Windows_NT x64 10.0.19045 Modes: Sandboxed: No
System Info
Item | Value |
---|---|
CPUs | Intel® Core™ i9-9900K CPU @ 3.60GHz (16 x 3600) |
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) | 31.84GB (21.55GB free) |
Process Argv | –crash-reporter-id c5eaccc8-04a0-420f-9fcc-fc53a5d0dfc6 |
Screen Reader | no |
VM | 0% |
Extensions (11)
Extension | Author (truncated) | Version |
---|---|---|
vscode-eslint | dba | 2.4.0 |
vscode-deno | den | 3.17.0 |
sqltools | mtx | 0.27.1 |
sqltools-driver-mysql | mtx | 0.5.1 |
sqltools-driver-pg | mtx | 0.5.1 |
vscode-subword-navigation | ow | 1.2.0 |
vscode-paste-and-indent | Rub | 0.0.8 |
transpose | v4r | 0.0.6 |
windicss-intellisense | voo | 0.21.6 |
volar | Vue | 1.2.0 |
markdown-all-in-one | yzh | 3.5.0 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30681850
azure-dev_surveyone:30548225
vsccc:30610678
pyindex848:30662994
nodejswelcome1:30587005
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
vsccsb:30677849
pythonb192:30669360
functionswalk:30687959
pythonms35cf:30686773
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 21 (2 by maintainers)
END
key This also shows the behavior at top-left like what @qgates mentioned.https://user-images.githubusercontent.com/9910706/227197727-ca6910a3-e31a-4a80-952c-2f25fd6c9dc9.mp4
2. Bug with mouse dragging to the edge of screen
https://user-images.githubusercontent.com/9910706/227197765-3d8f42c1-95f3-45fd-a026-dbc17ac4da60.mp4
🎉 We were able to get reproducible steps and track down the root problem in https://github.com/microsoft/vscode/issues/179368#issuecomment-1499293621 . Let’s continue tracking in #179368, a PR with a fix is under way.
@qgates I’m using version 1.76.2 on Windows 11. I only develop javascript on VSCode currently.