Skip to content

Commit 4e17257

Browse files
committed
Update sepcification in regards to tag support
1 parent c630d13 commit 4e17257

File tree

1 file changed

+25
-3
lines changed

1 file changed

+25
-3
lines changed

specification.md

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ export namespace DiagnosticSeverity {
427427

428428
export type DiagnosticSeverity = 1 | 2 | 3 | 4;
429429

430+
/**
431+
* The diagnostic tags.
432+
*
433+
* @since 3.15.0
434+
*/
430435
export namespace DiagnosticTag {
431436
/**
432437
* Unused or unnecessary code.
@@ -2912,10 +2917,16 @@ export interface PublishDiagnosticsClientCapabilities {
29122917

29132918
/**
29142919
* Client supports the tag property to provide meta data about a diagnostic.
2920+
* Clients supporting tags have to handle unknown tags gracefully.
29152921
*
29162922
* @since 3.15.0
29172923
*/
2918-
tagSupport?: boolean;
2924+
tagSupport?: {
2925+
/**
2926+
* The tags supported by the client.
2927+
*/
2928+
valueSet: DiagnosticTag[];
2929+
};
29192930
}
29202931
```
29212932

@@ -2930,6 +2941,13 @@ interface PublishDiagnosticsParams {
29302941
*/
29312942
uri: DocumentUri;
29322943

2944+
/**
2945+
* Optional the version number of the document the diagnostics are published for.
2946+
*
2947+
* @since 3.15.0
2948+
*/
2949+
version?: number;
2950+
29332951
/**
29342952
* An array of diagnostic information items.
29352953
*/
@@ -2989,7 +3007,10 @@ export interface CompletionClientCapabilities {
29893007
preselectSupport?: boolean;
29903008

29913009
/**
2992-
* Client supports the tag property on a completion item.
3010+
* Client supports the tag property on a completion item. Clients supporting
3011+
* tags have to handle unknown tags gracefully. Clients especially need to
3012+
* preserve unknown tags when sending a completion item back to the server in
3013+
* a resolve call.
29933014
*
29943015
* @since 3.15.0
29953016
*/
@@ -5423,9 +5444,10 @@ Language servers usually run in a separate process and client communicate with t
54235444
* Add support for server and client information.
54245445
* Add signature help context.
54255446
* Add Erlang and Elixir to the list of supported programming languages
5426-
* Add `version` on `PublishDiagnosticParams`
5447+
* Add `version` on `PublishDiagnosticsParams`
54275448
* Add `CodeAction#isPreferred` support.
54285449
* Add `CompletionItem#tag` support.
5450+
* Add `Diagnostic#tag` support.
54295451
* Clarified `WorkspaceSymbolParams#query` parameter.
54305452

54315453

0 commit comments

Comments
 (0)