Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

XAML documentSymbol, inlayHint, and codeLens requests fail in Roslyn LSP

Aperta
#9,233 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
csharp, vscode
Ambito
devtools

Direzione di ricerca

Inizia dalle posizioni degli handler indicate nei log: DocumentSymbolsHandler.cs, InlayHintHandler.cs e CodeLensHandler.cs, quindi esamina DocumentExtensions.cs e ProjectExtensions.cs. Riproduci il problema con il documento XAML nel progetto segnalato e traccia come diventa un documento MiscellaneousFiles; il lavoro è terminato quando le richieste documentSymbol, inlayHint e codeLens non falliscono più in questo caso.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bug Needs Investigation Roslyn LSP Xaml

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.130.5
VS Code version: Code 1.116.0 (560a9dba96f961efea7b1612916f89e5d5d4d679, 2026-04-15T00:28:13Z)
OS version: Windows_NT x64 10.0.26200
Modes:

Logs
C# log
2026-04-24 10:45:22.753 [info] C# Extension activated in limited mode due to workspace trust not being granted.
2026-04-24 10:45:28.673 [info] Locating .NET runtime version 10.0.5
2026-04-24 10:45:28.880 [info] Dotnet path: C:\Program Files\dotnet\dotnet.exe
2026-04-24 10:45:28.880 [info] Activating C# + C# Dev Kit...
2026-04-24 10:45:29.160 [info] info: Program[0]
2026-04-24 10:45:29.161 [info]       Server started with process ID 9996
2026-04-24 10:45:30.380 [info] [Program] Language server initialized
2026-04-24 10:45:30.381 [info] [Program] Monitoring client process 19892 for exit
2026-04-24 10:45:34.895 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project C:\Users\marjo\Desktop\ProjetoAcelera\ProjetoAcelera.csproj loaded by C# Dev Kit
2026-04-24 10:59:44.427 [error] [textDocument/documentSymbol] [LSP] System.InvalidOperationException: Syntax tree is required to accomplish the task but is not supported by document Calendario.xaml.
   at Microsoft.CodeAnalysis.Shared.Extensions.DocumentExtensions.GetRequiredSyntaxRootAsync(Document document, CancellationToken cancellationToken) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/DocumentExtensions.cs:line 80
   at Microsoft.CodeAnalysis.LanguageServer.Handler.DocumentSymbolsHandler.GetDocumentSymbolsAsync(Document document, Boolean useHierarchicalSymbols, Boolean supportsVSExtensions, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/Symbols/DocumentSymbolsHandler.cs:line 50
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:44.428 [error] [textDocument/inlayHint] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.CalculateInlayHintsAsync(Document document, Range range, InlineHintsOptions options, Boolean displayAllOverride, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 107
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, Range range, InlineHintsOptions options, Boolean displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 52
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:44.434 [error] Request textDocument/documentSymbol failed.
  Message: Syntax tree is required to accomplish the task but is not supported by document Calendario.xaml.
  Code: -32000 
[object Object]
2026-04-24 10:59:44.436 [error] Request textDocument/inlayHint failed.
  Message: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 10:59:44.651 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:44.651 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 10:59:46.650 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:46.650 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 10:59:47.539 [error] [textDocument/inlayHint] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.CalculateInlayHintsAsync(Document document, Range range, InlineHintsOptions options, Boolean displayAllOverride, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 107
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, Range range, InlineHintsOptions options, Boolean displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 52
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:47.540 [error] Request textDocument/inlayHint failed.
  Message: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 10:59:56.378 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 10:59:56.378 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:13.962 [error] [textDocument/inlayHint] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.CalculateInlayHintsAsync(Document document, Range range, InlineHintsOptions options, Boolean displayAllOverride, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 107
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, Range range, InlineHintsOptions options, Boolean displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 52
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:13.963 [error] Request textDocument/inlayHint failed.
  Message: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:14.059 [error] [textDocument/inlayHint] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.CalculateInlayHintsAsync(Document document, Range range, InlineHintsOptions options, Boolean displayAllOverride, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 107
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, Range range, InlineHintsOptions options, Boolean displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 52
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:14.060 [error] Request textDocument/inlayHint failed.
  Message: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:18.939 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:18.940 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:27.586 [error] [textDocument/inlayHint] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.CalculateInlayHintsAsync(Document document, Range range, InlineHintsOptions options, Boolean displayAllOverride, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 107
   at Microsoft.CodeAnalysis.LanguageServer.Handler.InlayHint.InlayHintHandler.GetInlayHintsAsync(Document document, TextDocumentIdentifier textDocumentIdentifier, Range range, InlineHintsOptions options, Boolean displayAllOverride, InlayHintCache inlayHintCache, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/InlayHint/InlayHintHandler.cs:line 52
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:27.587 [error] Request textDocument/inlayHint failed.
  Message: Service of type 'Microsoft.CodeAnalysis.InlineHints.IInlineHintsService' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:27.805 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:27.805 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:32.803 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:32.804 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:38.692 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:38.693 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]
2026-04-24 11:00:40.827 [error] [textDocument/codeLens] [LSP] System.InvalidOperationException: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
   at Microsoft.CodeAnalysis.Shared.Extensions.ProjectExtensions.GetRequiredLanguageService[TLanguageService](Project project) in /_/src/Workspaces/SharedUtilitiesAndExtensions/Workspace/Core/Extensions/ProjectExtensions.cs:line 21
   at Microsoft.CodeAnalysis.LanguageServer.Handler.CodeLens.CodeLensHandler.GetCodeLensAsync(TextDocumentIdentifier textDocumentIdentifier, Document document, IGlobalOptionService globalOptionService, CancellationToken cancellationToken) in /_/src/LanguageServer/Protocol/Handler/CodeLens/CodeLensHandler.cs:line 59
   at Microsoft.CommonLanguageServerProtocol.Framework.QueueItem`1.StartRequestAsync[TRequest,TResponse](TRequest request, TRequestContext context, IMethodHandler handler, String language, CancellationToken cancellationToken)
2026-04-24 11:00:40.828 [error] Request textDocument/codeLens failed.
  Message: Service of type 'Microsoft.CodeAnalysis.CodeLens.ICodeLensMemberFinder' is required to accomplish the task but is not available from 'MiscellaneousFiles' workspace.
  Code: -32000 
[object Object]

C# LSP Trace Logs log

Environment Information

VSCode version: 1.116.0
C# Extension: 2.130.5
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 10.0.300-preview.0.26177.108 Commit: cf1948f9c2 Workload version: 10.0.300-manifests.d9cd7ded MSBuild version: 18.6.0-preview-26177-108+cf1948f9c

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-preview.0.26177.108\

.NET workloads installed:
[maui-windows]
Installation Source: VS 18.6.11716.218
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.6.11716.218
Manifest Version: 26.2.10233/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.maccatalyst\26.2.10233\WorkloadManifest.json
Install Type: Msi

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

[android]
Installation Source: VS 18.6.11716.218
Manifest Version: 36.1.43/10.0.100
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100\microsoft.net.sdk.android\36.1.43\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.5
Architecture: x64
Commit: a612c2a105

.NET SDKs installed:
10.0.300-preview.0.26177.108 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.25 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 10.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 8.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 10.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.25 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 10.0.5 [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
copilot-chat GitHub 0.44.2 github.copilot-chat-0.44.2
csdevkit ms-dotnettools 3.10.14 ms-dotnettools.csdevkit-3.10.14-win32-x64
csharp ms-dotnettools 2.130.5 ms-dotnettools.csharp-2.130.5-win32-x64
debugpy ms-python 2025.18.0 ms-python.debugpy-2025.18.0-win32-x64
docomment k--kato 1.0.2 k--kato.docomment-1.0.2
python ms-python 2026.4.0 ms-python.python-2026.4.0-win32-x64
remote-containers ms-vscode-remote 0.454.0 ms-vscode-remote.remote-containers-0.454.0
remote-explorer ms-vscode 0.5.0 ms-vscode.remote-explorer-0.5.0
remote-ssh ms-vscode-remote 0.122.0 ms-vscode-remote.remote-ssh-0.122.0
remote-ssh-edit ms-vscode-remote 0.87.0 ms-vscode-remote.remote-ssh-edit-0.87.0
sharpdbg lextudio 0.1.2 lextudio.sharpdbg-0.1.2
strawberry-matcha-theme danicaj3w 0.0.2 danicaj3w.strawberry-matcha-theme-0.0.2
vscode-celestial-magic-girl-icon-theme klyap 0.0.4 klyap.vscode-celestial-magic-girl-icon-theme-0.0.4
vscode-containers ms-azuretools 2.4.2 ms-azuretools.vscode-containers-2.4.2
vscode-docker ms-azuretools 2.0.0 ms-azuretools.vscode-docker-2.0.0
vscode-dotnet-runtime ms-dotnettools 3.0.0 ms-dotnettools.vscode-dotnet-runtime-3.0.0
vscode-eslint dbaeumer 3.0.24 dbaeumer.vscode-eslint-3.0.24
vscode-pets tonybaloney 1.35.0 tonybaloney.vscode-pets-1.35.0
vscode-pull-request-github GitHub 0.138.0 github.vscode-pull-request-github-0.138.0
vscode-pylance ms-python 2026.2.1 ms-python.vscode-pylance-2026.2.1
vscode-python-envs ms-python 1.28.0 ms-python.vscode-python-envs-1.28.0-win32-x64
vscode-wpf lextudio 0.9.13 lextudio.vscode-wpf-0.9.13
wpf-xml-preview stescobedo 1.1.0 stescobedo.wpf-xml-preview-1.1.0
xamlstyler dabbinavo 1.6.1 dabbinavo.xamlstyler-1.6.1
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs AMD Ryzen 7 5700G with Radeon Graphics (16 x 3800)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x1002, DEVICE=0x1638 [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=31.0.21924.61 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8246
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
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 7.30GB (1.08GB free)
Process Argv . --crash-reporter-id dec86aa5-04c0-4c95-9bc2-aa3671e7a961
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
cp_cls_c_966_ss:31454199
inlinechat_v2_hd992725:31499106
4je02754:31466945
8hhj4413:31478653
38bie571_auto:31426784
cp_cls_t_1081:31454832
conptydll_true:31498968
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
rl_a_098a3278:31497327
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
534a6447:31496642
chat:31457767
8hig5102:31480529
mm-base_e96jd707:31501020
quick_suggest_off_75197330:31497037
67jbj424:31500880
7e187181:31500884
cpptoolson-v2:31475363
i2gc6536:31499202
1g3cj959:31501677
ghj88844:31499326
ec1eg703:31491645
client_tst_t:31495907
ddid_t:31478206
getcmakediagnosticson:31489824
ja75b849:31495667
nes-perm-reb-0:31490411
cp_cls_c_1082:31491634
719di409_sum_t:31499345
nes-cj-aftline:31500937
logging_enabled_new:31498466
db5d2638:31499441
nes-ew-div-cursorline:31495480
nes-extended-cfe-himalia-004:31500446
56dj4588:31497896

Lingua principale
TypeScript
Stelle
3.1k
Fork
741
Merge medio
1g 3h
PR unite (30g)
52

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di dotnet/vscode-csharp

Tutte le issue di dotnet/vscode-csharp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.