-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Document diagnostics supersede workspace diagnostics #49408
Conversation
src/Features/LanguageServer/Protocol/Handler/Diagnostics/WorkspacePullDiagnosticHandler.cs
Outdated
Show resolved
Hide resolved
…pacePullDiagnosticHandler.cs Co-authored-by: Allison Chou <allichou@microsoft.com>
@@ -35,14 +34,26 @@ internal class DocumentPullDiagnosticHandler : AbstractPullDiagnosticHandler<Doc | |||
=> diagnosticsParams.TextDocument; | |||
|
|||
protected override DiagnosticReport CreateReport(TextDocumentIdentifier? identifier, VSDiagnostic[]? diagnostics, string? resultId) | |||
=> new DiagnosticReport { Diagnostics = diagnostics, ResultId = resultId }; | |||
=> new DiagnosticReport |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we set an Identifier here just in case? I worry that the workspace report technically has Supersedes = 0
, and this has an identifier of 0, and whilst I'm sure the platform handles that, it still makes me nervous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. i dont' mind being explicit.
Hello @CyrusNajmabadi! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto-approval
No description provided.