Skip to content

Commit c32561a

Browse files
committed
Declare support of deprecation notices
1 parent bd756ed commit c32561a

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

packages/lsp-ws-connection/src/ws-connection.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
import * as events from 'events';
2-
import { LocationLink } from 'vscode-languageserver-protocol';
2+
import {
3+
CompletionItemTag,
4+
LocationLink
5+
} from 'vscode-languageserver-protocol';
36
import * as protocol from 'vscode-languageserver-protocol';
47
import { ConsoleLogger, listen, MessageConnection } from 'vscode-ws-jsonrpc';
58
import {
@@ -163,8 +166,11 @@ export class LspWsConnection
163166
snippetSupport: false,
164167
commitCharactersSupport: true,
165168
documentationFormat: ['markdown', 'plaintext'],
166-
deprecatedSupport: false,
167-
preselectSupport: false
169+
deprecatedSupport: true,
170+
preselectSupport: false,
171+
tagSupport: {
172+
valueSet: [CompletionItemTag.Deprecated]
173+
}
168174
},
169175
contextSupport: false
170176
},

0 commit comments

Comments
 (0)