Skip to content

ProjectSystemProject _gate gets blocked on client RPC requests causing slow sln load #78734

@dibarbet

Description

@dibarbet

To reproduce

  1. Clone https://github.com/MudBlazor/MudBlazor
  2. Open in VSCode with C# (2.79.8) + CDK installed
  3. Note the loading on most hover, no intellisense, and extremely long solution load (15+ minutes)

I took a trace of the lsp server, it looks like the majority of the thread time (74%) is spent blocked on the _gate semaphore in ProjectSystemProject

Image

waiting to process dynamic file info changed events. It appears as though this gate is slow because under the same _gate, it makes an RPC call to the client to get the latest file info -

Talked with @jasonmalinowski offline, and think we can move this out of the gate.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions