Skip to content

Commit

Permalink
Clarify diagnostic pull (#1776)
Browse files Browse the repository at this point in the history
* Clarify diagnostic pull

* Fix small typo
  • Loading branch information
dbaeumer authored Jul 18, 2023
1 parent 877905e commit 8d13cb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _specifications/lsp/3.17/language/pullDiagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ The workspace diagnostic request is sent from the client to the server to ask th
If a client receives a diagnostic report for a document in a workspace diagnostic request for which the client also issues individual document diagnostic pull requests the client needs to decide which diagnostics win and should be presented. In general:

- diagnostics for a higher document version should win over those from a lower document version (e.g. note that document versions are steadily increasing)
- diagnostics from a document pull should win over diagnostics form a workspace pull if no version information is provided.
- diagnostics from a document pull should win over diagnostics from a workspace pull.

_Request_:
* method: 'workspace/diagnostic'.
Expand Down
2 changes: 1 addition & 1 deletion _specifications/lsp/3.18/language/pullDiagnostics.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ The workspace diagnostic request is sent from the client to the server to ask th
If a client receives a diagnostic report for a document in a workspace diagnostic request for which the client also issues individual document diagnostic pull requests the client needs to decide which diagnostics win and should be presented. In general:

- diagnostics for a higher document version should win over those from a lower document version (e.g. note that document versions are steadily increasing)
- diagnostics from a document pull should win over diagnostics form a workspace pull if no version information is provided.
- diagnostics from a document pull should win over diagnostics from a workspace pull.

_Request_:
* method: 'workspace/diagnostic'.
Expand Down

0 comments on commit 8d13cb2

Please sign in to comment.