microsoft / vscode

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

Red Squiggles Continue when No Error #194769

Closed Rich-Hopkins closed 1 year ago

Rich-Hopkins commented 1 year ago

Type: Bug

I create a new class using the right-click folder => New C# => Class. When the class is created, it has the class name underlined with the following error on hover:

The namespace 'Application.Core' already contains a definition for 'MappingProfiles' [Application, Application]csharp(CS0101) class Application.Core.MappingProfiles

There is no other class that shares this name, and this is no matter what new class I add. Every single time I create a new class it does this.

VS Code version: Code 1.82.3 (fdb98833154679dbaa7af67a5a29fe19e55c2b73, 2023-10-02T10:51:22.294Z) OS version: Windows_NT x64 10.0.22621 Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 1498)| |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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|31.60GB (15.25GB free)| |Process Argv|--crash-reporter-id 37865f3d-0e92-4489-9a3b-59e2f550d63e| |Screen Reader|no| |VM|0%|
Extensions (56) Extension|Author (truncated)|Version ---|---|--- vscode-sql-formatter|adp|1.4.4 vscode-userscript|adp|1.3.2 vscode-css-formatter|aes|1.0.2 vscode-sqlite|ale|0.14.1 nugetpackagemanagergui|ali|2.0.6 ng-template|Ang|16.1.8 jsoncrack-vscode|Ayk|2.0.2 tabulous|bwi|1.2.0 path-intellisense|chr|2.8.4 doxdocgen|csc|1.4.0 vscode-markdownlint|Dav|0.52.0 vscode-eslint|dba|2.4.2 xml|Dot|2.5.1 gitlens|eam|14.3.0 json-tools|eri|1.0.2 vs-code-xml-format|fab|0.1.5 dotnet|for|0.0.4 better-cpp-syntax|jef|1.17.2 Angular2|joh|16.0.1 vscode-peacock|joh|4.2.2 csharpextensions|kre|1.7.3 rainbow-csv|mec|3.7.1 csharp|ms-|1.26.0 vscode-dotnet-runtime|ms-|1.8.0 vscode-edge-devtools|ms-|2.1.3 azure-deploy|ms-|1.2.4 remote-containers|ms-|0.309.0 remote-ssh|ms-|0.106.4 remote-ssh-edit|ms-|0.86.0 remote-wsl|ms-|0.81.7 azure-account|ms-|0.11.5 cmake-tools|ms-|1.15.31 cpptools|ms-|1.17.5 cpptools-extension-pack|ms-|1.3.0 powershell|ms-|2023.6.0 vscode-serial-monitor|ms-|0.10.0 vsliveshare|ms-|1.0.5883 vsliveshare-pack|ms-|0.4.0 debugger-for-edge|msj|1.0.15 vscode-streamdeck|nic|4.1.6 es6-css-minify|olb|3.3.3 vscode-nuget-gallery|pat|0.0.24 vscode-print|pdc|0.11.17 vscode-gitignore-generator|pio|1.0.3 material-icon-theme|PKi|4.30.1 postman-for-vscode|Pos|0.10.0 arduino-snippets|ron|1.0.2 file-tree-generator|Shi|1.1.1 ASPNETCore-VSCode-Extensions|Syn|23.1.36 Blazor-VSCode-Extensions|Syn|23.1.36 Web-VSCode-Extensions|Syn|23.1.36 poor-mans-t-sql-formatter-vscode|Tao|1.6.10 cmake|twx|0.0.17 windows-terminal|Tyr|0.7.0 vscode-arduino|vsc|0.6.0 markdown-all-in-one|yzh|3.5.1 (1 theme extensions excluded)
A/B Experiments ``` vsliv368cf:30146710 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242:30382549 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 vscorecescf:30445987 vscod805cf:30301675 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263:30792226 vscaat:30438848 vsclangdf:30486550 c4g48928:30535728 dsvsc012:30540252 pynewext54:30695312 azure-dev_surveyone:30548225 3biah626:30602489 f6dab269:30613381 a9j8j154:30646983 showlangstatbar:30737416 a2ce3375:30757347 pythonfmttext:30731395 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 copilotsettingc:30839828 asynctok:30821568 dsvsc013:30795093 dsvsc014:30804076 diffeditorv1:30821571 pythonmhint1:30842940 dsvsc015:30845448 ```
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!