Skip to content

Commit 615658c

Browse files
committed
Announce tag support for diagnostics, correct capabilities type
1 parent 2f8c3c3 commit 615658c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

packages/jupyterlab-lsp/src/connection.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import type * as rpc from 'vscode-jsonrpc';
1919
import type * as lsp from 'vscode-languageserver-protocol';
2020
import type { MessageConnection } from 'vscode-ws-jsonrpc';
2121

22-
import { CompletionItemTag } from './lsp';
22+
import { CompletionItemTag, DiagnosticTag } from './lsp';
2323
import { ILSPLogConsole } from './tokens';
2424
import { until_ready } from './utils';
2525

@@ -426,6 +426,11 @@ export class LSPConnection extends LspWsConnection {
426426
},
427427
contextSupport: false
428428
},
429+
publishDiagnostics: {
430+
tagSupport: {
431+
valueSet: [DiagnosticTag.Deprecated, DiagnosticTag.Unnecessary]
432+
}
433+
},
429434
signatureHelp: {
430435
dynamicRegistration: true,
431436
signatureInformation: {
@@ -448,7 +453,7 @@ export class LSPConnection extends LspWsConnection {
448453
dynamicRegistration: true,
449454
linkSupport: true
450455
}
451-
} as lsp.ClientCapabilities,
456+
} as lsp.TextDocumentClientCapabilities,
452457
workspace: {
453458
didChangeConfiguration: {
454459
dynamicRegistration: true

0 commit comments

Comments
 (0)