@@ -427,6 +427,11 @@ export namespace DiagnosticSeverity {
427
427
428
428
export type DiagnosticSeverity = 1 | 2 | 3 | 4 ;
429
429
430
+ /**
431
+ * The diagnostic tags.
432
+ *
433
+ * @since 3.15.0
434
+ */
430
435
export namespace DiagnosticTag {
431
436
/**
432
437
* Unused or unnecessary code.
@@ -2912,10 +2917,16 @@ export interface PublishDiagnosticsClientCapabilities {
2912
2917
2913
2918
/**
2914
2919
* Client supports the tag property to provide meta data about a diagnostic.
2920
+ * Clients supporting tags have to handle unknown tags gracefully.
2915
2921
*
2916
2922
* @since 3.15.0
2917
2923
*/
2918
- tagSupport? : boolean ;
2924
+ tagSupport? : {
2925
+ /**
2926
+ * The tags supported by the client.
2927
+ */
2928
+ valueSet: DiagnosticTag [];
2929
+ };
2919
2930
}
2920
2931
```
2921
2932
@@ -2930,6 +2941,13 @@ interface PublishDiagnosticsParams {
2930
2941
*/
2931
2942
uri: DocumentUri ;
2932
2943
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
+
2933
2951
/**
2934
2952
* An array of diagnostic information items.
2935
2953
*/
@@ -2989,7 +3007,10 @@ export interface CompletionClientCapabilities {
2989
3007
preselectSupport? : boolean ;
2990
3008
2991
3009
/**
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.
2993
3014
*
2994
3015
* @since 3.15.0
2995
3016
*/
@@ -5423,9 +5444,10 @@ Language servers usually run in a separate process and client communicate with t
5423
5444
* Add support for server and client information.
5424
5445
* Add signature help context.
5425
5446
* Add Erlang and Elixir to the list of supported programming languages
5426
- * Add ` version ` on ` PublishDiagnosticParams `
5447
+ * Add ` version ` on ` PublishDiagnosticsParams `
5427
5448
* Add ` CodeAction#isPreferred ` support.
5428
5449
* Add ` CompletionItem#tag ` support.
5450
+ * Add ` Diagnostic#tag ` support.
5429
5451
* Clarified ` WorkspaceSymbolParams#query ` parameter.
5430
5452
5431
5453
0 commit comments