Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward diagnostic reanalysis request to be a lsp pull diagnostic refresh instead #72659

Merged
merged 10 commits into from
Mar 23, 2024

Conversation

CyrusNajmabadi
Copy link
Member

It's quite possible we want to remove all of this entirely. But for now this will help preserve semantics from any feature taht can insert its own diagnostics, but wants to have LSP refresh after something causes them to change.

@CyrusNajmabadi CyrusNajmabadi requested a review from dibarbet March 22, 2024 02:30
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 22, 2024 02:30
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 22, 2024
_diagnosticService.Reanalyze(_workspace, projectIds: null, documentIds: SpecializedCollections.SingletonEnumerable(selectedDiagnostic.DocumentId), highPriority: true);
});
}
_diagnosticService.RequestDiagnosticRefresh();
Copy link
Member Author

Choose a reason for hiding this comment

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

no point in any sort of fire-and-forget approach. RequestDiagnosticRefresh is already fire-and-forget

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 22, 2024 20:20
@CyrusNajmabadi CyrusNajmabadi disabled auto-merge March 22, 2024 21:45
@CyrusNajmabadi CyrusNajmabadi disabled auto-merge March 22, 2024 21:46
@CyrusNajmabadi
Copy link
Member Author

/azp run Roslyn-CI

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@CyrusNajmabadi CyrusNajmabadi merged commit e242b93 into dotnet:main Mar 23, 2024
25 of 27 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the reanalyzeRefresh branch March 23, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants