issue
untriagedC#DK
Type: <b>Bug</b>
## Issue Description ##
## Steps to Reproduce ##
## Expected Behavior ##
## Actual Behavior ##
Extension version: 2.142.16
VS Code version: Code 1.122.1 (8761a5560cfd65fdd19ce7e2bd18dab5c0a4d84e, 2026-05-29T09:25:37+02:00)
OS version: Windows_NT x64 10.0.26200
Modes:
### Logs ###
<!--
If you can, it would be the most helpful to zip up and attach the entire extensions log folder. The folder can be opened by running the `workbench.action.openExtensionLogsFolder` command.
Additionally, if you can reproduce the issue reliably, use trace logging, see https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#c-lsp-trace-logs and then report the issue.
-->
### C# log ###
<details>
```
2026-06-03 08:45:27.563 [info] Locating .NET runtime version 10.0.5
2026-06-03 08:45:30.273 [info] Dotnet path: c:\Users\user564\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\dotnet.exe
2026-06-03 08:45:30.273 [info] Activating C# + C# Dev Kit...
2026-06-03 08:45:31.921 [info] info: Program[0]
2026-06-03 08:45:31.947 [info] Server started with process ID 20892
2026-06-03 08:45:39.901 [info] [Program] Language server initialized
2026-06-03 08:45:39.916 [info] [Program] Monitoring client process 19900 for exit
2026-06-03 08:45:48.779 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\Users\user564\Documents\avanaplasticsurgery.com-4.0' in 37 milliseconds
2026-06-03 09:14:10.836 [error] [textDocument/didOpen] [LSP] Unable to parse URI _claude_vscode_fs_right:/c:/Users/user564/Documents/avanaplasticsurgery.com-4.0/avanaplasticsurgery.com/BaseProject-7.0/Views/ServicePage/Content/breast-implants-miami/En/articlemetas.cshtml
2026-06-03 09:14:10.858 [error] [textDocument/diagnostic] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/diagnostic
2026-06-03 09:14:10.869 [error] Request textDocument/diagnostic failed.
Message: Failed to get language for textDocument/diagnostic
Code: -30099
2026-06-03 09:14:10.869 [error] Document pull failed for text document _claude_vscode_fs_right:/c%3A/Users/user564/Documents/avanaplasticsurgery.com-4.0/avanaplasticsurgery.com/BaseProject-7.0/Views/ServicePage/Content/breast-implants-miami/En/articlemetas.cshtml
Message: Failed to get language for textDocument/diagnostic
Code: -30099
2026-06-03 09:14:10.903 [error] [textDocument/_vs_getProjectContexts] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/_vs_getProjectContexts
2026-06-03 09:14:10.906 [error] Error making textDocument/_vs_getProjectContexts request Failed to get language for textDocument/_vs_getProjectContexts
2026-06-03 09:14:10.906 [error] [textDocument/documentColor] [LSP] StreamJsonRpc.LocalRpcException: Missing handler for textDocument/documentColor and language default
2026-06-03 09:14:10.906 [error] Request textDocument/documentColor failed.
Message: Missing handler for textDocument/documentColor and language default
Code: -30099
2026-06-03 09:14:10.909 [error] [textDocument/documentSymbol] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/documentSymbol
2026-06-03 09:14:10.909 [error] Request textDocument/documentSymbol failed.
Message: Failed to get language for textDocument/documentSymbol
Code: -30099
2026-06-03 09:14:10.925 [error] [textDocument/inlayHint] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/inlayHint
2026-06-03 09:14:10.925 [error] Request textDocument/inlayHint failed.
Message: Failed to get language for textDocument/inlayHint
Code: -30099
2026-06-03 09:14:11.012 [error] [textDocument/semanticTokens/range] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/semanticTokens/range
2026-06-03 09:14:11.013 [error] Request textDocument/semanticTokens/range failed.
Message: Failed to get language for textDocument/semanticTokens/range
Code: -30099
2026-06-03 09:14:11.202 [error] [textDocument/documentSymbol] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/documentSymbol
2026-06-03 09:14:11.202 [error] Request textDocument/documentSymbol failed.
Message: Failed to get language for textDocument/documentSymbol
Code: -30099
2026-06-03 09:14:11.212 [error] [textDocument/foldingRange] [LSP] StreamJsonRpc.LocalRpcException: Failed to get language for textDocument/foldingRange
2026-06-03 09:14:11.212 [error] Request textDocument/foldingRange failed.
Message: Failed to get language for textDocument/foldingRange
Code: -30099
2026-06-03 09:14:23.068 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:14:24.551 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:15:10.273 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:15:27.376 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:17:37.284 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:17:48.617 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:17:57.609 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:18:03.586 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:20:27.179 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:24:15.997 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:24:24.183 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:24:55.208 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:24:55.452 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:24:55.868 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:00.304 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:01.376 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:02.065 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:05.021 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:09.955 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:17.562 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:21.320 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:21.554 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:26.093 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:28.463 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:31.919 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:40.829 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:42.770 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:43.160 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:43.393 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:45.994 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:51.492 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:25:55.864 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:08.084 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:15.966 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:19.951 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:20.305 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:31.646 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:26:43.842 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:27:03.053 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:27:03.553 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:27:15.205 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
2026-06-03 09:27:15.916 [error] Request textDocument/semanticTokens/range failed.
Message: End: (19,140) matches or exceeds SourceText boundary 17.
Code: -32000
[object Object]
```
</details>
### C# LSP Trace Logs log ###
<details>
```
```
</details>
## Environment Information ##
**VSCode version**: 1.122.1
**C# Extension**: 2.142.16
**Using OmniSharp**: false
<details><summary>Dotnet Information</summary>
Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c
RID: win-x64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.8 [c:\Users\user564\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.8 [c:\Users\user564\AppData\Roaming\Code\User\globalStorage\ms-dotnettools.vscode-dotnet-runtime\.dotnet\10.0.8~x64~aspnetcore\shared\Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]
DOTNET_NOLOGO [true]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
</details>
<details><summary>Visual Studio Code Extensions</summary>
|Extension|Author|Version|Folder Name|
|---|---|---|---|
|claude-code|Anthropic|2.1.160|anthropic.claude-code-2.1.160-win32-x64|
|csdevkit|ms-dotnettools|3.20.199|ms-dotnettools.csdevkit-3.20.199-win32-x64|
|csharp|ms-dotnettools|2.142.16|ms-dotnettools.csharp-2.142.16-win32-x64|
|debugpy|ms-python|2026.6.0|ms-python.debugpy-2026.6.0-win32-x64|
|gc-excelviewer|GrapeCity|4.2.65|grapecity.gc-excelviewer-4.2.65|
|githistory|donjayamanne|0.6.20|donjayamanne.githistory-0.6.20|
|language-liquid|neilding|0.1.1|neilding.language-liquid-0.1.1|
|python|ms-python|2026.4.0|ms-python.python-2026.4.0-win32-x64|
|rainbow-csv|mechatroner|3.24.1|mechatroner.rainbow-csv-3.24.1|
|remote-containers|ms-vscode-remote|0.459.0|ms-vscode-remote.remote-containers-0.459.0|
|remote-explorer|ms-vscode|0.5.0|ms-vscode.remote-explorer-0.5.0|
|remote-server|ms-vscode|1.5.3|ms-vscode.remote-server-1.5.3|
|remote-ssh|ms-vscode-remote|0.123.0|ms-vscode-remote.remote-ssh-0.123.0|
|remote-ssh-edit|ms-vscode-remote|0.87.0|ms-vscode-remote.remote-ssh-edit-0.87.0|
|remote-wsl|ms-vscode-remote|0.104.3|ms-vscode-remote.remote-wsl-0.104.3|
|vscode-dotnet-runtime|ms-dotnettools|3.0.2|ms-dotnettools.vscode-dotnet-runtime-3.0.2|
|vscode-pylance|ms-python|2026.2.1|ms-python.vscode-pylance-2026.2.1|
|vscode-python-envs|ms-python|1.30.0|ms-python.vscode-python-envs-1.30.0-win32-x64|
|vscode-remote-extensionpack|ms-vscode-remote|0.26.0|ms-vscode-remote.vscode-remote-extensionpack-0.26.0|;
</details>
<details><summary>C# Settings</summary>
|Setting|Value|
|---|---|
|preferCSharpExtension|false|
|compilerDiagnosticScope|openFiles|
|analyzerDiagnosticScope|openFiles|
|enableXamlTools|true|
|useServerGC|true|;
</details>
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz (12 x 2592)|
|GPU Status|2d_canvas: enabled<br>GPU0: VENDOR= 0x8086, DEVICE=0x4c8b [Intel(R) UHD Graphics 730], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7084 *ACTIVE*<br>GPU1: VENDOR= 0x10de, DEVICE=0x1cb3 [NVIDIA Quadro P400], DRIVER_VERSION=32.0.15.6603<br>GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8328<br>Machine model name: <br>Machine model version: <br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>trees_in_viz: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled<br>webnn: disabled_off|
|Load (avg)|undefined|
|Memory (System)|11.73GB (0.71GB free)|
|Process Argv|--crash-reporter-id a00f65e1-09a0-4217-80bd-ebff446a6f82|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>A/B Experiments</summary>
```
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31505457
cloudbuttont:31379625
3efgi100_wstrepl:31403338
839jf696:31457053
ec5jj548:31422691
cp_cls_t_966_ss:31454198
inlinechat_v2_hd992725:31505030
4je02754:31466945
8hhj4413:31478653
cp_cls_c_1081:31454833
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
control_6dc23131:31520950
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
githubstableflight:31469463
ghj88844:31499326
ec1eg703:31520046
ddid_t:31478206
hmra_i5g22:31518061
getcmakediagnosticsoff:31489825
7df3h592:31512476
cp_cls_t_1082:31516087
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_c_632:31524806
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
nes-charagree-2:31521371
31fi7170_t:31522396
jh5f2457_c:31515489
61138546:31518536
nes-global-3k:31525691
```
</details>
<!-- generated by issue reporter -->
0 条评论