Type: Bug
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Extension version: 2.140.9
VS Code version: Code 1.126.0 (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Logs
C# log
Details
2026-06-29 13:50:10.347 [info] Locating .NET runtime version 10.0.5
2026-06-29 13:50:12.916 [info] Did not find .NET 10.0.5 on path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
2026-06-29 13:50:12.985 [info] Dotnet path: c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.3~x64~aspnetcore\dotnet.exe
2026-06-29 13:50:12.986 [info] Activating C# + C# Dev Kit...
2026-06-29 13:50:13.910 [info] info: Program[0]
2026-06-29 13:50:13.910 [info] Server started with process ID 8932
2026-06-29 13:50:16.904 [info] [Program] Language server initialized
2026-06-29 13:50:16.906 [info] [Program] Monitoring client process 4320 for exit
2026-06-29 13:50:18.530 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\School' in 35 milliseconds
2026-06-29 13:50:32.909 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\School\SchoolResultSystem\SchoolResultSystem.Web\SchoolResultSystem.Web.csproj loaded by C# Dev Kit
2026-06-29 13:51:40.626 [info] C# Extension activated in limited mode due to workspace trust not being granted.
2026-06-29 14:01:06.548 [info] Locating .NET runtime version 10.0.5
2026-06-29 14:01:13.486 [info] Did not find .NET 10.0.5 on path, falling back to acquire runtime via ms-dotnettools.vscode-dotnet-runtime
2026-06-29 14:01:14.374 [info] Dotnet path: c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.3~x64~aspnetcore\dotnet.exe
2026-06-29 14:01:14.375 [info] Activating C# + C# Dev Kit...
2026-06-29 14:01:15.437 [info] info: Program[0]
2026-06-29 14:01:15.438 [info] Server started with process ID 20168
2026-06-29 14:01:20.397 [info] [Program] Language server initialized
2026-06-29 14:01:20.399 [info] [Program] Monitoring client process 9964 for exit
2026-06-29 14:01:22.469 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'd:\School' in 24 milliseconds
2026-06-29 14:01:40.806 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project D:\School\SchoolResultSystem\SchoolResultSystem.Web\SchoolResultSystem.Web.csproj loaded by C# Dev Kit
2026-06-29 15:00:19.899 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from c:\Users\zeinh\.vscode\extensions\ms-dotnettools.csharp-2.140.9-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe reloading to start from C:\Program Files\dotnet\dotnet.exe to match necessary SDK location.
2026-06-29 15:00:23.339 [warning] [textDocument/didSave] [LanguageServerProjectLoader] Project C:\Users\zeinh\AppData\Local\Temp\roslyn-canonical-misc\3971a5e6-2105-4b2f-a583-bea8a30ae12d\Canonical.csproj has unresolved dependencies
2026-06-29 15:00:23.557 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Models\AccountingModels.cs
2026-06-29 15:00:23.601 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Running dotnet restore on C:\Users\zeinh\AppData\Local\Temp\roslyn-canonical-misc\3971a5e6-2105-4b2f-a583-bea8a30ae12d\Canonical.csproj
2026-06-29 15:00:23.601 [info] [textDocument/didSave] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-06-29 15:00:26.725 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Determining projects to restore...
2026-06-29 15:00:27.746 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restoring Canonical.csproj: Restored C:\Users\zeinh\AppData\Local\Temp\roslyn-canonical-misc\3971a5e6-2105-4b2f-a583-bea8a30ae12d\Canonical.csproj (in 198 ms).
2026-06-29 15:00:27.833 [info] [textDocument/didSave] [LanguageServerProjectLoader] Restore complete
2026-06-29 15:00:27.833 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:08.5736532
2026-06-29 15:00:28.247 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Models\AccountingModels.cs
2026-06-29 15:00:28.247 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0253827
2026-06-29 15:01:03.817 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Models\AccountantDashboardModels.cs
2026-06-29 15:01:03.817 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0241670
2026-06-29 15:01:04.204 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Models\AccountantDashboardModels.cs
2026-06-29 15:01:04.204 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0093094
2026-06-29 15:01:36.368 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Services\AccountingLedgerService.cs
2026-06-29 15:01:36.368 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0160185
2026-06-29 15:01:36.763 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Services\AccountingLedgerService.cs
2026-06-29 15:01:36.763 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0114559
2026-06-29 15:01:58.936 [info] [textDocument/didSave] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Controllers\AccountantDashboardController.cs
2026-06-29 15:01:58.936 [info] [textDocument/didSave] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0372276
2026-06-29 15:01:59.262 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Successfully completed load of d:\School\SchoolResultSystem\SchoolResultSystem.Web\Areas\Accountant\Controllers\AccountantDashboardController.cs
2026-06-29 15:01:59.262 [info] [workspace/didChangeWatchedFiles] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:00.0126805
2026-06-29 15:22:27.562 [error] Request textDocument/inlayHint failed.
Message: Razor source generator did not produce a host output for project 'SchoolResultSystem.Web': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 102
-----
Code: -32000
[object Object]
2026-06-29 15:22:27.575 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'SchoolResultSystem.Web': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 102
-----
Code: -32000
[object Object]
2026-06-29 15:22:27.578 [error] Request textDocument/semanticTokens/range failed.
Message: Razor source generator did not produce a host output for project 'SchoolResultSystem.Web': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 102
-----
Code: -32000
[object Object]
2026-06-29 15:22:27.976 [error] Request textDocument/foldingRange failed.
Message: Razor source generator did not produce a host output for project 'SchoolResultSystem.Web': warning CS8785: Generator 'RazorSourceGenerator' failed to generate source. It will not contribute to the output and compilation errors may occur as a result. Exception was of type 'ArgumentException' with message 'The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')'.
System.ArgumentException: The hintName 'Views/_ViewImports_cshtml.g.cs' of the added source file must be unique within a generator. (Parameter 'hintName')
at Microsoft.CodeAnalysis.AdditionalSourcesCollection.Add(String hintName, SourceText source) in /_/src/Compilers/Core/Portable/SourceGeneration/AdditionalSourcesCollection.cs:line 78
at Microsoft.CodeAnalysis.SourceOutputNode`1.AppendOutputs(IncrementalExecutionContext context, CancellationToken cancellationToken) in /_/src/Compilers/Core/Portable/SourceGeneration/Nodes/SourceOutputNode.cs:line 102
-----
Code: -32000
[object Object]
C# LSP Trace Logs log
Details
Environment Information
VSCode version: 1.126.0
C# Extension: 2.140.9
Using OmniSharp: false
Dotnet Information
Host:
Version: 10.0.3
Architecture: x64
Commit: c2435c3e0f
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.3 [c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.3x64aspnetcore\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.3 [c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.3x64aspnetcore\shared\Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_MULTILEVEL_LOOKUP [0]
DOTNET_NOLOGO [true]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
| Extension |
Author |
Version |
Folder Name |
| black-formatter |
ms-python |
2026.6.0 |
ms-python.black-formatter-2026.6.0 |
| claude-code |
Anthropic |
2.1.195 |
anthropic.claude-code-2.1.195-win32-x64 |
| csdevkit |
ms-dotnettools |
3.20.199 |
ms-dotnettools.csdevkit-3.20.199-win32-x64 |
| csharp |
ms-dotnettools |
2.140.9 |
ms-dotnettools.csharp-2.140.9-win32-x64 |
| debugpy |
ms-python |
2026.6.0 |
ms-python.debugpy-2026.6.0-win32-x64 |
| JavaScriptSnippets |
xabikos |
1.8.0 |
xabikos.javascriptsnippets-1.8.0 |
| LiveServer |
ritwickdey |
5.7.10 |
ritwickdey.liveserver-5.7.10 |
| prettier-vscode |
esbenp |
12.4.0 |
esbenp.prettier-vscode-12.4.0 |
| python |
ms-python |
2026.4.0 |
ms-python.python-2026.4.0-win32-x64 |
| remote-containers |
ms-vscode-remote |
0.459.1 |
ms-vscode-remote.remote-containers-0.459.1 |
| vscode-containers |
ms-azuretools |
2.4.5 |
ms-azuretools.vscode-containers-2.4.5 |
| vscode-docker |
ms-azuretools |
2.0.0 |
ms-azuretools.vscode-docker-2.0.0 |
| vscode-dotnet-runtime |
ms-dotnettools |
3.1.0 |
ms-dotnettools.vscode-dotnet-runtime-3.1.0 |
| vscode-html-css |
ecmel |
2.0.14 |
ecmel.vscode-html-css-2.0.14 |
| vscode-intelephense-client |
bmewburn |
1.18.5 |
bmewburn.vscode-intelephense-client-1.18.5 |
| vscode-pylance |
ms-python |
2026.2.1 |
ms-python.vscode-pylance-2026.2.1 |
| vscode-python-envs |
ms-python |
1.36.0 |
ms-python.vscode-python-envs-1.36.0-win32-x64 |
C# Settings
| Setting |
Value |
| preferCSharpExtension |
false |
| compilerDiagnosticScope |
openFiles |
| analyzerDiagnosticScope |
openFiles |
| enableXamlTools |
true |
| useServerGC |
true |
System Info
| Item |
Value |
| CPUs |
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz (8 x 1800) |
| GPU Status |
2d_canvas: enabled GPU0: VENDOR= 0x8086, DEVICE=0x5917 [Intel(R) UHD Graphics 620], DRIVER_VENDOR=Intel, DRIVER_VERSION=27.20.100.9664 ACTIVE GPU1: VENDOR= 0x1002, DEVICE=0x6900 [AMD Radeon R7 M460], DRIVER_VERSION=27.20.1034.6 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521 Machine model name: Machine model version: 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 trees_in_viz: disabled_off video_decode: enabled video_encode: enabled webgl: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) |
undefined |
| Memory (System) |
11.90GB (2.02GB free) |
| Process Argv |
--crash-reporter-id b0122d56-1af5-4cea-aa39-683fcbbfc4f6 |
| Screen Reader |
no |
| VM |
0% |
A/B Experiments
vsliv368:30146709
vswsl492:30256859
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
63221493:31336333
envsdeactivate2:31538737
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
core-renderer-profiling-on:31440367
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_t:31478206
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31537244
852d2892:31506239
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
2cfga817_c:31522397
jh5f2457_c:31540921
api_cot_ctrl:31513533
hgf2d445:31529595
8hfba999:31537718
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_c_nes:31533503
gf14b233:31526830
nes-curr-leftover-1500:31538366
h561g132:31533256
sessions_3:31532893
ihg5j128:31534457
Type: Bug
Issue Description
Steps to Reproduce
Expected Behavior
Actual Behavior
Extension version: 2.140.9
VS Code version: Code 1.126.0 (7e7950df89d055b5a378379db9ee14290772148a, 2026-06-23T01:46:13Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Logs
C# log
Details
C# LSP Trace Logs log
Details
Environment Information
VSCode version: 1.126.0
C# Extension: 2.140.9
Using OmniSharp: false
Dotnet Information
Host:
Version: 10.0.3
Architecture: x64
Commit: c2435c3e0f
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.3 [c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.3
x64aspnetcore\shared\Microsoft.AspNetCore.App]Microsoft.NETCore.App 10.0.3 [c:\Users\zeinh\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime.dotnet\10.0.3
x64aspnetcore\shared\Microsoft.NETCore.App]Other architectures found:
None
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_MULTILEVEL_LOOKUP [0]
DOTNET_NOLOGO [true]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
C# Settings
System Info
GPU0: VENDOR= 0x8086, DEVICE=0x5917 [Intel(R) UHD Graphics 620], DRIVER_VENDOR=Intel, DRIVER_VERSION=27.20.100.9664 ACTIVE
GPU1: VENDOR= 0x1002, DEVICE=0x6900 [AMD Radeon R7 M460], DRIVER_VERSION=27.20.1034.6
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8521
Machine model name:
Machine model version:
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments