Skip to content

Comments

Simplify LSP refresh queue management#81864

Merged
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:simplifyQueue
Jan 5, 2026
Merged

Simplify LSP refresh queue management#81864
CyrusNajmabadi merged 5 commits intodotnet:mainfrom
CyrusNajmabadi:simplifyQueue

Conversation

@CyrusNajmabadi
Copy link
Contributor

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner January 5, 2026 20:15
private readonly CancellationTokenSource _disposalTokenSource;
private readonly LspWorkspaceRegistrationService _lspWorkspaceRegistrationService;

protected bool _isQueueCreated;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this. we already have the presence/absence of the queue we can check.

/// Enqueues a request to refresh the workspace. If <paramref name="documentUri"/> is null, then the refresh will
/// always happen. If non-null, the refresh will only happen if the client is <em>not</em> tracking that document.
/// If the client is tracking the document, no refresh is necessary as the client clearly knows about the change.
/// </summary>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added docs as the semantics weren't previous clear to me.

@CyrusNajmabadi CyrusNajmabadi merged commit e52855d into dotnet:main Jan 5, 2026
26 of 27 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the simplifyQueue branch January 5, 2026 22:02
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jan 5, 2026
@davidwengier davidwengier modified the milestones: Next, 18.3 Jan 6, 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