Open davidvmckay opened 2 years ago
omnisharp-vscode v1.24.0-beta1 tried to simplify the glob for workspaceContains
via omnisharp v1.38 (commit), but this was inadequate to overcome the 7-second timeout in my environment.
One thing that helped was removing a lot of projects / folders from my workspace. This brought the glob time down under 7 seconds, and Omnisharp was able to load.
But now I need to create a whole bunch of other workspaces and switch between them frequently, so not ideal.
Another thing that helped was just using a faster computer - but clearly that is not a scalable solution.
Yep - just realized the reason i didn't have language server for c# running was this particular issue:
[2022-08-17 11:31:57.203] [exthost] [info] Not activating extension 'Dart-Code.dart-code': Timed out while searching for 'workspaceContains' pattern /pubspec.yaml,//pubspec.yaml,.dart,/.dart,//*.dart [2022-08-17 11:31:57.203] [exthost] [info] Not activating extension 'fernandoescolar.vscode-solution-explorer': Timed out while searching for 'workspaceContains' pattern /.sln [2022-08-17 11:31:57.203] [exthost] [info] Not activating extension 'lokalise.i18n-ally': Timed out while searching for 'workspaceContains' pattern .vue [2022-08-17 11:31:57.203] [exthost] [info] Not activating extension 'ms-azuretools.vscode-azurefunctions': Timed out while searching for 'workspaceContains' pattern /host.json [2022-08-17 11:31:57.204] [exthost] [info] Not activating extension 'ms-dotnettools.csharp': Timed out while searching for 'workspaceContains' pattern /*.{csproj,sln,slnf,csx,cake} [2022-08-17 11:31:57.204] [exthost] [info] Not activating extension 'ms-mssql.sql-database-projects-vscode': Timed out while searching for 'workspaceContains' pattern */.sqlproj [2022-08-17 11:31:57.204] [exthost] [info] Not activating extension 'ms-playwright.playwright': Timed out while searching for 'workspaceContains' pattern /playwright.config.{ts,js,mjs}
p.s., cannot use the extension to "prefill this information" because the issue I wish to report is that the extension won't load:
When I try to use the "prefill" command, the Error I see is
Command 'CSharp: Report an issue' resulted in an error (command 'csharp.reportIssue' not found)
synopsis
After vscode update to 1.63, the c# extension (ms-dotnettools.csharp, a.k.a omnisharp-vscode) refuses to load. Based on logs from the Extension Host, this seems to stem from a change in vscode 1.63 meant to avoid hangs when loading unresponsive extensions: https://code.visualstudio.com/updates/v1_63#_timeout-of-workspacecontains
additional context
workspaceContains
activation event + glob pattern - or a workaround setting or command to bypass that activation event.workspaceContains
timeout broke something else about glob patterns for that use case...Log (Extension Host)
Environment data
VS Code version:
C# Extension version:
OmniSharp log
Steps to reproduce
Check for updates
functionality to upgrade Visual Studio Code to v1.63Expected behavior
Continue to have functioning C# analyzers, hover tips, autocomplete, and dependency navigation.
Actual behavior
The omnisharp-vscode extension doesn't even load (Actually the extension is registered as
ms-dotnettools.csharp
)