Skip to content

Add ProjectContext refresh queue#81938

Merged
JoeRobich merged 3 commits intomainfrom
dev/jorobich/add-context-refresh
Jan 10, 2026
Merged

Add ProjectContext refresh queue#81938
JoeRobich merged 3 commits intomainfrom
dev/jorobich/add-context-refresh

Conversation

@JoeRobich
Copy link
Member

@JoeRobich JoeRobich commented Jan 9, 2026

Adds a ProjectContext refresh queue. This will allow the C# extension to know when changes occur that could affect the project context displayed for open files. Currently it sends a notification when workspace changes occur.

I believe this should address dotnet/vscode-csharp#8849

LspWorkspaceRegistrationService lspWorkspaceRegistrationService,
LspWorkspaceManager lspWorkspaceManager,
IClientLanguageServerManager notificationManager)
: base(asynchronousOperationListenerProvider, lspWorkspaceRegistrationService, lspWorkspaceManager, notificationManager)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit. consider primary constructor.

Copy link
Contributor

@CyrusNajmabadi CyrusNajmabadi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable. but i'd like DAvid to take a look :)

@JoeRobich JoeRobich merged commit 19f995d into main Jan 10, 2026
26 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jan 10, 2026
JoeRobich added a commit to dotnet/vscode-csharp that referenced this pull request Jan 12, 2026
This PR adds a project context feature which takes enables the client to use the new project context refresh support added to the LSP in dotnet/roslyn#81938. The current method of validating a project context is "up to date" is replaced with waiting to receive refresh notifications from the server.

A Roslyn build with refresh support merged in #8877

Addresses #8849
@davidwengier davidwengier modified the milestones: Next, 18.4 Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants