microsoft / vscode

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

Intellisense Auto-Complete Deleting Variable Names #184258

Closed MoonstarCoding closed 1 year ago

MoonstarCoding commented 1 year ago

Type: Bug

When using Intellisense in C# ASP.NET application, it is deleting variable names after the autocomplete. For example, say I wanted to convert var result = _context.Table.AddAsync(thing); to var result = await _context.Table.AddAsync(thing);. When I type await and accept the Intellisense auto correct, it becomes the following: var result = await .Table.AddAsync(thing);.

VS Code version: Code - Insiders 1.79.0-insider (506cd5056d875ccdbea2e9a41ba7b9f19103d599, 2023-06-02T20:37:18.279Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.86GB (3.15GB free)| |Process Argv|--crash-reporter-id 920c4e7c-d335-4b02-89a2-16628e539601| |Screen Reader|no| |VM|0%|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- better-comments|aar|3.0.2 ng-template|Ang|16.0.0 better-toml|bun|0.3.2 vscode-better-align|cho|1.4.2 path-intellisense|chr|2.8.4 regex|chr|0.4.0 gitignore|cod|0.9.0 vscode-markdownlint|Dav|0.50.0 gitlens|eam|13.6.0 prettier-vscode|esb|9.13.0 vscode-todo-plus|fab|4.19.1 auto-rename-tag|for|0.1.10 code-runner|for|0.12.0 copilot-chat|Git|0.1.2023060101 copilot-labs|Git|0.14.884 copilot-nightly|Git|1.88.136 vscode-pull-request-github|Git|0.64.0 live-sass|gle|6.0.5 minify|Hoo|0.4.3 latex-workshop|Jam|9.11.4 fontawesome-autocomplete|Jan|1.3.1 docomment|k--|1.0.0 vscode-colorize|kam|0.11.1 rainbow-csv|mec|3.7.0 git-graph|mhu|1.30.0 csharp|ms-|1.25.8 vscode-dotnet-runtime|ms-|1.6.0 python|ms-|2023.9.11521013 vscode-pylance|ms-|2023.5.50 remote-containers|ms-|0.294.0 remote-ssh|ms-|0.102.0 remote-ssh-edit|ms-|0.86.0 vscode-remote-extensionpack|ms-|0.24.0 remote-explorer|ms-|0.4.0 remote-server|ms-|1.1.0 vsliveshare|ms-|1.0.5864 sftp|Nat|1.16.2 language-liquid|nei|0.1.1 gremlins|nho|0.26.0 material-icon-theme|PKi|4.28.0 Csharp-ASPNETCore|rah|1.11.0 vscode-thunder-client|ran|2.7.4 vscode-yaml|red|1.13.0 trailing-spaces|sha|0.4.1 swdc-vscode|sof|2.7.0 guides|spy|0.9.3 code-spell-checker|str|2.20.4 org-mode|too|0.5.0 latex-support|tor|3.10.0 lorem-ipsum|Tyr|1.3.1 vscode-mdx|uni|1.3.0 highlight-matching-tag|vin|0.11.0 intellicode-api-usage-examples|Vis|0.2.7 markdown-all-in-one|yzh|3.5.1 vscode-caddyfile-syntax|zam|1.0.4 html-css-class-completion|Zig|1.20.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv695:30137379 vsins829:30139715 vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vswsl492cf:30256198 vslsvsres303:30308271 pythontb:30258533 pythonptprofiler:30281269 vshan820:30294714 vscod805cf:30301675 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30404738 cppdebug:30492333 vsclangdf:30492506 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30618038 pylantcb52:30590116 pyind779:30611226 pythonsymbol12:30651887 2i9eh265:30646982 showlangstatbar:30737417 pythonms35:30671666 03d35959:30757351 ecj1e332:30687743 pythonfmttext:30716741 pythoncmvfstr:30726892 fixhidewlkth:30724384 hidesbindicator:30724476 pythongtdpath:30726887 pythonnosmt12:30757129 ```
mjbvz commented 1 year ago

/extC#

vscodenpa commented 1 year ago

It looks like this is caused by the C# extension. Please file the issue to the C# extension repository. Make sure to check their issue reporting template and provide them relevant information such as the extension version you're using. See also our issue reporting guidelines for more information.

Happy Coding!