Skip to content

Crash: Connection to server got closed. Server will restart #9177

@nalawade41

Description

@nalawade41

Type: Bug

Issue Description

Steps to Reproduce

Expected Behavior

Actual Behavior

Extension version: 2.130.5
VS Code version: Code 1.114.0 (Universal) (e7fb5e96c0730b9deb70b33781f98e2f35975036, 2026-04-01T09:27:11Z)
OS version: Darwin arm64 25.4.0
Modes:

Logs

C# log

Details
2026-04-13 14:01:44.482 [info] Locating .NET runtime version 10.0.5
2026-04-13 14:01:44.738 [info] Dotnet path: /Users/maheshnalawade/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/10.0.5~arm64~aspnetcore/dotnet
2026-04-13 14:01:44.738 [info] Activating C# + C# Dev Kit...
2026-04-13 14:01:44.994 [info] info: Program[0]
2026-04-13 14:01:44.994 [info]       Server started with process ID 64795
2026-04-13 14:01:45.408 [info] [Program] Language server initialized
2026-04-13 14:01:45.408 [info] [Program] Monitoring client process 29937 for exit
2026-04-13 14:01:46.028 [info] [textDocument/_vs_getProjectContexts] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /Users/maheshnalawade/.vscode/extensions/ms-dotnettools.csharp-2.130.5-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/local/share/dotnet/dotnet to match necessary SDK location.
2026-04-13 14:01:46.590 [warning] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Project /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/80c9fc33-0bda-4d46-b02c-6dfc4ed64be8/Canonical.csproj has unresolved dependencies
2026-04-13 14:01:46.656 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Successfully completed load of /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/80c9fc33-0bda-4d46-b02c-6dfc4ed64be8/Canonical.cs
2026-04-13 14:01:46.658 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.cs: Running dotnet restore on /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/80c9fc33-0bda-4d46-b02c-6dfc4ed64be8/Canonical.cs
2026-04-13 14:01:46.658 [info] [textDocument/_vs_getProjectContexts] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-04-13 14:01:46.863 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /Users/maheshnalawade/Work/src/copilot/copilot-hackethon/backend/CopilotDicom.Api/CopilotDicom.Api.csproj loaded by C# Dev Kit
2026-04-13 14:01:47.095 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.cs:   Determining projects to restore...
2026-04-13 14:01:56.895 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.cs: /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/80c9fc33-0bda-4d46-b02c-6dfc4ed64be8/Canonical.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://eassist-238198781492.d.codeartifact.us-east-1.amazonaws.com/nuget/copilot/v3/index.json.
2026-04-13 14:01:56.932 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restoring Canonical.cs:   Restored /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/80c9fc33-0bda-4d46-b02c-6dfc4ed64be8/Canonical.csproj (in 9.71 sec).
2026-04-13 14:01:56.948 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Restore complete
2026-04-13 14:01:56.948 [info] [textDocument/_vs_getProjectContexts] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:11.1176408
2026-04-13 14:13:27.738 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /Users/maheshnalawade/Work/src/copilot/copilot-hackethon/backend/CopilotDicom.Api.Tests/CopilotDicom.Api.Tests.csproj loaded by C# Dev Kit
2026-04-13 14:53:38.925 [info] Connection to server got closed. Server will restart.
2026-04-13 14:53:38.926 [error] Server process exited with code 143.
2026-04-13 14:53:39.006 [info] info: Program[0]
2026-04-13 14:53:39.006 [info]       Server started with process ID 83185
2026-04-13 14:53:39.273 [info] [Program] Language server initialized
2026-04-13 14:53:39.275 [info] [Program] Monitoring client process 29937 for exit
2026-04-13 14:53:39.806 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /Users/maheshnalawade/.vscode/extensions/ms-dotnettools.csharp-2.130.5-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/local/share/dotnet/dotnet to match necessary SDK location.
2026-04-13 14:53:40.274 [warning] [textDocument/diagnostic] [LanguageServerProjectLoader] Project /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/3c287e6c-26fa-41e6-a0b5-ef84f5d73468/Canonical.csproj has unresolved dependencies
2026-04-13 14:53:40.334 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/3c287e6c-26fa-41e6-a0b5-ef84f5d73468/Canonical.cs
2026-04-13 14:53:40.336 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs: Running dotnet restore on /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/3c287e6c-26fa-41e6-a0b5-ef84f5d73468/Canonical.cs
2026-04-13 14:53:40.336 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-04-13 14:53:40.731 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs:   Determining projects to restore...
2026-04-13 14:53:43.571 [info] Locating .NET runtime version 10.0.5
2026-04-13 14:53:43.652 [info] Dotnet path: /Users/maheshnalawade/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/10.0.5~arm64~aspnetcore/dotnet
2026-04-13 14:53:43.652 [info] Activating C# + C# Dev Kit...
2026-04-13 14:53:43.721 [info] info: Program[0]
2026-04-13 14:53:43.721 [info]       Server started with process ID 83721
2026-04-13 14:53:44.004 [info] [Program] Language server initialized
2026-04-13 14:53:44.005 [info] [Program] Monitoring client process 83217 for exit
2026-04-13 14:53:44.631 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /Users/maheshnalawade/.vscode/extensions/ms-dotnettools.csharp-2.130.5-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/local/share/dotnet/dotnet to match necessary SDK location.
2026-04-13 14:53:45.208 [warning] [textDocument/diagnostic] [LanguageServerProjectLoader] Project /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/6ed31cde-1ed3-403f-9bbb-1773ae9d3a42/Canonical.csproj has unresolved dependencies
2026-04-13 14:53:45.246 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/6ed31cde-1ed3-403f-9bbb-1773ae9d3a42/Canonical.cs
2026-04-13 14:53:45.248 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs: Running dotnet restore on /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/6ed31cde-1ed3-403f-9bbb-1773ae9d3a42/Canonical.cs
2026-04-13 14:53:45.248 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-04-13 14:53:45.602 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs:   Determining projects to restore...
2026-04-13 14:53:45.609 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /Users/maheshnalawade/Work/src/copilot/copilot-hackethon/backend/CopilotDicom.Api/CopilotDicom.Api.csproj loaded by C# Dev Kit
2026-04-13 14:53:45.616 [info] [serviceBroker/connect] [WorkspaceProjectFactoryService] Project /Users/maheshnalawade/Work/src/copilot/copilot-hackethon/backend/CopilotDicom.Api.Tests/CopilotDicom.Api.Tests.csproj loaded by C# Dev Kit
2026-04-13 14:53:55.792 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs: /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/6ed31cde-1ed3-403f-9bbb-1773ae9d3a42/Canonical.csproj : warning NU1900: Error occurred while getting package vulnerability data: Unable to load the service index for source https://eassist-238198781492.d.codeartifact.us-east-1.amazonaws.com/nuget/copilot/v3/index.json.
2026-04-13 14:53:55.827 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs:   Restored /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/6ed31cde-1ed3-403f-9bbb-1773ae9d3a42/Canonical.csproj (in 10.09 sec).
2026-04-13 14:53:55.841 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restore complete
2026-04-13 14:53:55.841 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Completed (re)load of all projects in 00:00:11.4102323
2026-04-13 14:54:18.584 [info] Connection to server got closed. Server will restart.
2026-04-13 14:54:18.586 [error] Server process exited with code 143.
2026-04-13 14:54:18.647 [info] info: Program[0]
2026-04-13 14:54:18.647 [info]       Server started with process ID 84746
2026-04-13 14:54:18.909 [info] [Program] Language server initialized
2026-04-13 14:54:18.909 [info] [Program] Monitoring client process 83217 for exit
2026-04-13 14:54:19.428 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.MSBuild.BuildHostProcessManager] .NET BuildHost started from /Users/maheshnalawade/.vscode/extensions/ms-dotnettools.csharp-2.130.5-darwin-arm64/.roslyn/Microsoft.CodeAnalysis.LanguageServer reloading to start from /usr/local/share/dotnet/dotnet to match necessary SDK location.
2026-04-13 14:54:19.890 [warning] [textDocument/diagnostic] [LanguageServerProjectLoader] Project /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/a5e00eb7-5768-4750-9966-b72795b9a02f/Canonical.csproj has unresolved dependencies
2026-04-13 14:54:19.934 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Successfully completed load of /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/a5e00eb7-5768-4750-9966-b72795b9a02f/Canonical.cs
2026-04-13 14:54:19.938 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs: Running dotnet restore on /var/folders/30/k8ssndcs48l992n39_4rqb0h0000gn/T/roslyn-canonical-misc/a5e00eb7-5768-4750-9966-b72795b9a02f/Canonical.cs
2026-04-13 14:54:19.938 [info] [textDocument/diagnostic] [Microsoft.CodeAnalysis.LanguageServer.DotnetCliHelper] Using dotnet executable configured on the PATH
2026-04-13 14:54:20.256 [info] [textDocument/diagnostic] [LanguageServerProjectLoader] Restoring Canonical.cs:   Determining projects to restore...

C# LSP Trace Logs log

Details

Environment Information

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

Dotnet Information

Host:
Version: 10.0.5
Architecture: arm64
Commit: a612c2a105
RID: osx-arm64

.NET SDKs installed:
No SDKs were found.

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.5 [/Users/maheshnalawade/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/10.0.5arm64aspnetcore/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.5 [/Users/maheshnalawade/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/10.0.5arm64aspnetcore/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
claude-code Anthropic 2.1.101 anthropic.claude-code-2.1.101-darwin-arm64
code-runner formulahendry 0.12.2 formulahendry.code-runner-0.12.2
codetogether genuitecllc 2025.4.1 genuitecllc.codetogether-2025.4.1
csdevkit ms-dotnettools 3.10.14 ms-dotnettools.csdevkit-3.10.14-darwin-arm64
csharp ms-dotnettools 2.130.5 ms-dotnettools.csharp-2.130.5-darwin-arm64
debugpy ms-python 2025.18.0 ms-python.debugpy-2025.18.0-darwin-arm64
go golang 0.52.2 golang.go-0.52.2
go-doc msyrus 1.0.1 msyrus.go-doc-1.0.1
go-outliner 766b 0.1.21 766b.go-outliner-0.1.21
gotestexplorer premparihar 0.1.13 premparihar.gotestexplorer-0.1.13
json Meezilla 0.1.2 meezilla.json-0.1.2
json ZainChen 2.0.2 zainchen.json-2.0.2
jupyter ms-toolsai 2025.9.1 ms-toolsai.jupyter-2025.9.1-darwin-arm64
pdf tomoki1207 1.2.2 tomoki1207.pdf-1.2.2
prettier-vscode esbenp 12.4.0 esbenp.prettier-vscode-12.4.0
prettify-json mohsen1 0.0.3 mohsen1.prettify-json-0.0.3
python ms-python 2026.4.0 ms-python.python-2026.4.0-darwin-arm64
rainbow-csv mechatroner 3.24.1 mechatroner.rainbow-csv-3.24.1
remote-containers ms-vscode-remote 0.447.0 ms-vscode-remote.remote-containers-0.447.0
vscode-containers ms-azuretools 2.4.1 ms-azuretools.vscode-containers-2.4.1
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-github-actions github 0.31.3 github.vscode-github-actions-0.31.3
vscode-kubernetes-tools ms-kubernetes-tools 1.3.29 ms-kubernetes-tools.vscode-kubernetes-tools-1.3.29
vscode-leetcode LeetCode 0.18.4 leetcode.vscode-leetcode-0.18.4
vscode-pylance ms-python 2026.2.1 ms-python.vscode-pylance-2026.2.1
vscode-yaml redhat 1.21.0 redhat.vscode-yaml-1.21.0
C# Settings
Setting Value
preferCSharpExtension false
compilerDiagnosticScope openFiles
analyzerDiagnosticScope openFiles
enableXamlTools true
useServerGC true
System Info
Item Value
CPUs Apple M3 Max (14 x 2400)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x106b [Google Inc. (Apple)], DEVICE=0x0000 [ANGLE (Apple, ANGLE Metal Renderer: Apple M3 Max, Version 26.4 (Build 25E246))], DRIVER_VENDOR=Apple, DRIVER_VERSION=26.4 ACTIVE
Machine model name: Mac
Machine model version: 15.11
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 6, 4, 4
Memory (System) 36.00GB (2.04GB free)
Process Argv --enable-proposed-api genuitecllc.codetogether --crash-reporter-id 4d1c8b25-b049-423d-8388-64b70f8a523a
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vswsl492cf:30256860
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
ec5jj548:31422691
cp_cls_c_966_ss:31454199
c3h7c220:31478652
cp_cls_c_1081:31454833
conptydll_false:31489735
e9c30283:31461165
test_treatment2:31471001
idci7584:31464702
3bj34942:31489864
ei9d7968:31458072
534a6447:31478749
chat:31457767
t-some:31486549
cpptoolson-v2:31475363
ghj88844:31492074
23c7c724:31491644
ddid_c:31478207
getcmakediagnosticsoff:31489825
cp_cls_c_1082:31491634
logging_enabled_new:31493367

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions