microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.83k stars 29.5k forks source link

Auto suggestion deletes the word after the comma when accepting it #202854

Closed BartaG512 closed 9 months ago

BartaG512 commented 10 months ago

Type: Bug

Auto suggestion deletes the word after the comma when accepting it.

issue

VS Code version: Code - Insiders 1.86.0-insider (a45edfc415d19852fa3c3e1cd255a02de9e016d2, 2024-01-11T05:36:37.776Z) OS version: Windows_NT x64 10.0.19045 Modes:

System Info |Item|Value| |---|---| |CPUs|AMD Ryzen 9 7950X 16-Core Processor (32 x 4491)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|63.14GB (45.35GB free)| |Process Argv|--crash-reporter-id 31ad2f6f-2d91-42a3-8aeb-181c7dee89e4 --crash-reporter-id 31ad2f6f-2d91-42a3-8aeb-181c7dee89e4 --crash-reporter-id 31ad2f6f-2d91-42a3-8aeb-181c7dee89e4| |Screen Reader|no| |VM|0%|
Extensions (45) Extension|Author (truncated)|Version ---|---|--- xlf-editor|aar|1.1.52 jest-snippets|and|1.9.1 ng-template|Ang|17.0.3 export-your-extensions|Bha|1.0.2 vscode-toggle-quotes|Bri|0.3.6 npm-intellisense|chr|1.4.5 format-json|Cle|1.0.3 package-json-upgrade|cod|2.1.2 continue|Con|0.9.11 vscode-eslint|dba|2.4.2 apc-extension|drc|0.3.6 prettier-vscode|esb|10.1.0 filter-line|eve|2.0.1 vscode-diff|fab|1.4.2 vscode-jest-runner|fir|0.4.72 todo-tree|Gru|0.0.226 toggler|hid|0.5.0 nano-bots|ice|1.0.2 vscode-ansi|ili|1.1.6 RelativePath|jak|1.5.0 diff-tool|jin|0.0.1 svg|joc|1.5.3 vscode-colorize|kam|0.11.1 expand-region|let|0.1.4 loginspector|Log|1.6.4 template-string-converter|meg|0.6.1 xml-format|mik|1.1.3 remote-containers|ms-|0.332.0 remote-ssh|ms-|0.107.1 remote-ssh-edit|ms-|0.86.0 live-server|ms-|0.4.13 remote-explorer|ms-|0.4.1 vscode-typescript-next|ms-|5.4.20240110 vscode-yaml|red|1.14.0 vscode-json-validate|rio|1.4.4 vscode-coverage-gutters|rya|2.11.1 ansi-color-code|Seb|0.1.1 vscode-scss-formatter|sib|3.0.0 svg-preview|Sim|2.8.3 code-spell-checker|str|3.0.1 ignore|Syl|0.0.7 vscode-icons|vsc|12.6.0 gitblame|wad|10.6.0 faster-new|wen|1.5.2 pretty-ts-errors|Yoa|0.5.3
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 vsaa593cf:30376535 py29gd2263:30784851 vscaac:30438845 vsclangdf:30492506 c4g48928:30535728 2i9eh265:30646982 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pyreplss1:30879911 pythonmypyd1:30859725 pythoncet0:30859736 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 ```
vscodenpa commented 10 months ago

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.85.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

BartaG512 commented 10 months ago

It is happening in the Insiders build. Updated the issue.

mjbvz commented 9 months ago

With a better explanation, this looks like normal "replace" mode for suggestions. See https://www.youtube.com/watch?v=QIze0qkugNc for details

BartaG512 commented 9 months ago

The problem I am using insert mode. Not replace mode.

mjbvz commented 9 months ago

Please share code as text that demonstrates the issue because it seems to work for me

BartaG512 commented 9 months ago

It seems the problem was with VS Code version: Code - Insiders 1.86.0-insider version in 1.87.0 this works properly.