Skip to content

Commit 55520f2

Browse files
authored
Fixes 1677: why clientCapability textDocument/diagnostic are not same? see link (#2195)
1 parent 5be841c commit 55520f2

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

_specifications/lsp/3.17/language/pullDiagnostics.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,29 @@ export interface DiagnosticClientCapabilities {
3030
* pulls.
3131
*/
3232
relatedDocumentSupport?: boolean;
33+
34+
/**
35+
* Whether the clients accepts diagnostics with related information.
36+
*/
37+
relatedInformation?: boolean;
38+
39+
/**
40+
* Client supports the tag property to provide meta data about a diagnostic.
41+
* Clients supporting tags have to handle unknown tags gracefully.
42+
*/
43+
tagSupport?: ClientDiagnosticsTagOptions;
44+
45+
/**
46+
* Client supports a codeDescription property
47+
*/
48+
codeDescriptionSupport?: boolean;
49+
50+
/**
51+
* Whether code action supports the `data` property which is
52+
* preserved between a `textDocument/publishDiagnostics` and
53+
* `textDocument/codeAction` request.
54+
*/
55+
dataSupport?: boolean;
3356
}
3457
```
3558

_specifications/lsp/3.18/language/pullDiagnostics.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,36 @@ export interface DiagnosticClientCapabilities {
3131
*/
3232
relatedDocumentSupport?: boolean;
3333

34+
/**
35+
* Whether the clients accepts diagnostics with related information.
36+
*/
37+
relatedInformation?: boolean;
38+
39+
/**
40+
* Client supports the tag property to provide meta data about a diagnostic.
41+
* Clients supporting tags have to handle unknown tags gracefully.
42+
*/
43+
tagSupport?: ClientDiagnosticsTagOptions;
44+
45+
/**
46+
* Client supports a codeDescription property
47+
*/
48+
codeDescriptionSupport?: boolean;
49+
3450
/**
3551
* Whether the client supports `MarkupContent` in diagnostic messages.
3652
*
3753
* @since 3.18.0
3854
* @proposed
3955
*/
4056
markupMessageSupport?: boolean;
57+
58+
/**
59+
* Whether code action supports the `data` property which is
60+
* preserved between a `textDocument/publishDiagnostics` and
61+
* `textDocument/codeAction` request.
62+
*/
63+
dataSupport?: boolean;
4164
}
4265
```
4366

0 commit comments

Comments
 (0)