Skip to content

Erro Encontrado #9692

Description

@NicolasGMSilva

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.148.23
VS Code version: Code 1.133.0 (a5b500951314efd502d07465bd138dfbd714a960, 2026-08-11T22:14:08Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs

C# log

Details
2026-08-19 14:57:07.488 [info] Locating .NET runtime version 10.0.5
2026-08-19 14:57:09.470 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-08-19 14:57:09.470 [info] Activating C# + C# Dev Kit...
2026-08-19 14:57:11.315 [info] info: Program[0]
2026-08-19 14:57:11.315 [info]       Server information:
2026-08-19 14:57:11.321 [info] info: Program[0]
2026-08-19 14:57:11.321 [info]         Assembly informational version: 5.11.0-1.26380.4+dc1db3e7dee178e2744a73eb06dce107c07fa7b1
2026-08-19 14:57:11.322 [info] info: Program[0]
2026-08-19 14:57:11.322 [info]         Executable path: c:\Users\music\.vscode\extensions\ms-dotnettools.csharp-2.148.23-win32-x64\.roslyn\Microsoft.CodeAnalysis.LanguageServer.exe
2026-08-19 14:57:11.322 [info] info: Program[0]
2026-08-19 14:57:11.323 [info]         Process ID: 10212
2026-08-19 14:57:13.772 [info] info: Program[0]
2026-08-19 14:57:13.772 [info]       Monitoring client process 12088 for exit
2026-08-19 14:57:13.772 [info] info: Program[0]
2026-08-19 14:57:13.772 [info]       Language server initialized
2026-08-19 14:57:20.425 [info] [initialized] [Microsoft.CodeAnalysis.LanguageServer.FileBasedPrograms.FileBasedProgramsEntryPointDiscovery] Finished discovery in 'c:\Users\music\OneDrive\Projetos\Sistema de Monioramento da água\MonitoramentoAguaBackC#' in 99 milliseconds
2026-08-19 14:57:24.787 [info] [Razor.LanguageClient.Cohost.RazorCohostDynamicRegistrationService] Requesting 27 Razor cohost registrations.
2026-08-19 14:57:25.352 [info] [initialized] [Razor]  Razor extension startup finished.
2026-08-19 14:57:42.542 [info] [WorkspaceProjectFactoryService] Projeto C:\Users\music\OneDrive\Projetos\Sistema de Monioramento da água\MonitoramentoAguaBackC#\MonitoramentoAgua.csproj carregado pelo C# Dev Kit
2026-08-19 15:17:56.416 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:17:56.421 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:17:56.422 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:18:00.416 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:18:00.417 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:18:00.417 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:18:42.040 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:18:42.134 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:18:42.136 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:18:46.177 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:18:46.466 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:18:46.468 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:19:01.695 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:01.696 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:01.697 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:06.976 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:06.977 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:06.978 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:06.978 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:19:12.067 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:19:12.354 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:19:12.604 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:10.329 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:20:10.330 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:20:10.330 [warning] Failed to wait for document update: Error: Document was closed before update completed
2026-08-19 15:20:15.436 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:15.720 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:16.016 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:37.382 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:37.669 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:37.940 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:20:41.006 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:27:51.961 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Tag name or attributes' span does not intersect with index, 532.
2026-08-19 15:27:51.963 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 15:32:57.065 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:32:57.330 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:32:57.681 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:42:08.660 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Tag name or attributes' span does not intersect with index, 415.
2026-08-19 15:42:10.163 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 15:42:11.156 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate component document.
2026-08-19 15:46:36.895 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:46:36.898 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:46:36.899 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:46:44.987 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 15:46:44.987 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 15:46:48.308 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:46:48.643 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:46:48.878 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:47:38.539 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:47:38.542 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:47:38.545 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:48:11.373 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:48:11.375 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:48:11.377 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:49:00.616 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 15:49:00.617 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 15:49:04.303 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:49:04.306 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:49:04.700 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:50:05.678 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:50:05.680 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 15:50:05.690 [warning] Failed to wait for document update: Error: Document update timeout
2026-08-19 16:05:40.644 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 16:05:40.650 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:08.133 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:08.144 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:08.151 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:08.151 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:09.423 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:09.423 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:09.466 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:09.467 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:09.759 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:09.762 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:09.800 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:09.800 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:09.842 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not locate ancestor of type MarkupTagHelperStartTag or MarkupTagHelperEndTag.
2026-08-19 19:06:09.842 [info] [Microsoft.CodeAnalysis.Remote.Razor.GoToDefinition.DefinitionService] Could not retrieve bound tag helper information.
2026-08-19 19:06:18.363 [error] Error: Error: Illegal argument Illegal argument
2026-08-19 19:06:19.191 [error] [textDocument/foldingRange] [Razor]  StreamJsonRpc.RemoteInvocationException: Request textDocument/foldingRange failed with message: Illegal argument
   at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList`1 arguments, IReadOnlyList`1 positionalArgumentDeclaredTypes, IReadOnlyDictionary`2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject)
   at Microsoft.VisualStudioCode.RazorExtension.Services.HtmlRequestInvoker.MakeHtmlLspRequestAsync[TRequest,TResponse](TextDocument razorDocument, String method, TRequest request, TimeSpan threshold, Guid correlationId, CancellationToken cancellationToken)
   at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostFoldingRangeEndpoint.GetHtmlFoldingRangesAsync(TextDocument razorDocument, CancellationToken cancellationToken) in /_/src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/FoldingRange/CohostFoldingRangeEndpoint.cs:line 98
   at Microsoft.VisualStudio.Razor.LanguageClient.Cohost.CohostFoldingRangeEndpoint.HandleRequestAsync(TextDocument razorDocument, CancellationToken cancellationToken) in /_/src/Razor/src/Razor/src/Microsoft.CodeAnalysis.Razor.CohostingShared/FoldingRange/CohostFoldingRangeEndpoint.cs:line 66
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, CancellationToken cancellationToken)
2026-08-19 19:06:19.444 [error] Request textDocument/foldingRange failed.
  Message: Request textDocument/foldingRange failed with message: Illegal argument
  Code: -32000 
[object Object]

C# Logs de Rastreamento LSP log

Details

Environment Information

VSCode version: 1.133.0
C# Extension: 2.148.23
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 10.0.300 Commit: caa81fa497 Workload version: 10.0.300-manifests.e5fcd01b MSBuild version: 18.6.3+caa81fa49

Runtime Environment:
OS Name: Windows
OS Version: 10.0.26200
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.300\

.NET workloads installed:
[maui-windows]
Installation Source: VS 18.3.11520.95
Manifest Version: 10.0.20/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maui\10.0.20\WorkloadManifest.json
Install Type: Msi

[maccatalyst]
Installation Source: VS 18.3.11520.95
Manifest Version: 26.2.10191/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.2.10191\WorkloadManifest.json
Install Type: Msi

[ios]
Installation Source: VS 18.3.11520.95
Manifest Version: 26.2.10191/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.ios\26.2.10191\WorkloadManifest.json
Install Type: Msi

[android]
Installation Source: VS 18.3.11520.95
Manifest Version: 36.1.2/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.2\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
No workload sets are installed. Run "dotnet workload restore" to install a workload set.

Host:
Version: 10.0.8
Architecture: x64
Commit: 94ea82652c

.NET SDKs installed:
10.0.103 [C:\Program Files\dotnet\sdk]
10.0.300 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.16 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.8 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
DOTNET_CLI_UI_LANGUAGE [en-US]

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
code-snap aadityanarayan 1.1.2 aadityanarayan.code-snap-1.1.2
cpptools ms-vscode 1.33.8 ms-vscode.cpptools-1.33.8-win32-x64
csdevkit ms-dotnettools 3.20.199 ms-dotnettools.csdevkit-3.20.199-win32-x64
csharp ms-dotnettools 2.148.23 ms-dotnettools.csharp-2.148.23-win32-x64
LiveServer ritwickdey 5.7.10 ritwickdey.liveserver-5.7.10
material-icon-theme PKief 5.37.0 pkief.material-icon-theme-5.37.0
platformio-ide platformio 3.3.4 platformio.platformio-ide-3.3.4-win32-x64
prettier-vscode esbenp 12.4.0 esbenp.prettier-vscode-12.4.0
rest-client humao 0.25.1 humao.rest-client-0.25.1
theme-dracula dracula-theme 2.25.1 dracula-theme.theme-dracula-2.25.1
vscode-dotnet-runtime ms-dotnettools 3.1.0 ms-dotnettools.vscode-dotnet-runtime-3.1.0
vscode-eslint dbaeumer 3.0.34 dbaeumer.vscode-eslint-3.0.34
vscode-language-pack-pt-BR MS-CEINTL 1.131.2026072717 ms-ceintl.vscode-language-pack-pt-br-1.131.2026072717
vscode-theme-darcula rokoroku 1.2.3 rokoroku.vscode-theme-darcula-1.2.3
wokwi-vscode Wokwi 3.6.0 wokwi.wokwi-vscode-3.6.0
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz (4 x 2592)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x9bca [Intel(R) UHD Graphics], DRIVER_VENDOR=Intel, DRIVER_VERSION=26.20.100.7870 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8972
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) 3.82GB (0.24GB free)
Process Argv --crash-reporter-id 40c3cea9-9108-430c-a7f4-407f6f401258
Screen Reader yes
VM 0%
A/B Experiments
vsliv368cf:30146710
vswsl492:30256859
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
envsactivate1:31551504
478i5457:31544283
cloudbuttont:31379625
3efgi100_wstrepl:31403338
56b7f661:31457055
ddidtcf:31399634
ec5jj548:31422691
cp_cls_t_966_ss:31526232
4je02754:31466945
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_true:31498968
e9c30283:31461165
test_treatment2:31471001
c9b86496:31447327
capico_a_098a3278:31555650
ei9d7968:31496641
chat:31457767
8hig5102:31480529
ah:31461780
89g7j272:31518289
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
db5d2638:31499441
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
a1ije391_t:31540920
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
ahp-both-windows:31556933
sessions_3:31532893
ihg5j128:31534457
f412h606:31551416
9gg7f176:31542112
nes-ex-cf-euporie-03:31542868
enable_editor_pane_layout:31569726
allow-none:31555437
fd5dc207:31551400
36h42362:31564511
c7c27ce7:31554789
1h923230:31564177
0dg73464:31554319
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
0d8dfbc3:31566037
maidictation:31565333
0c1h4866:31566224
session-archive:31558132
5b8j3302:31564601

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#DKThe C#DK extension is installeduntriaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions