mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
Merge pull request #465 from rcjsuen/deprecated
Add deprecated property to CompletionItem and SymbolInformation
This commit is contained in:
commit
e89b3ff501
1 changed files with 15 additions and 0 deletions
|
|
@ -935,6 +935,11 @@ export interface TextDocumentClientCapabilities {
|
|||
* property. The order describes the preferred format of the client.
|
||||
*/
|
||||
documentationFormat?: MarkupKind[];
|
||||
|
||||
/**
|
||||
* Client supports the deprecated property on a completion item.
|
||||
*/
|
||||
deprecatedSupport?: boolean;
|
||||
}
|
||||
|
||||
completionItemKind?: {
|
||||
|
|
@ -2490,6 +2495,11 @@ interface CompletionItem {
|
|||
*/
|
||||
documentation?: string | MarkupContent;
|
||||
|
||||
/**
|
||||
* Indicates if this item is deprecated.
|
||||
*/
|
||||
deprecated?: boolean;
|
||||
|
||||
/**
|
||||
* A string that should be used when comparing this item
|
||||
* with other items. When `falsy` the label is used.
|
||||
|
|
@ -3033,6 +3043,11 @@ interface SymbolInformation {
|
|||
*/
|
||||
kind: number;
|
||||
|
||||
/**
|
||||
* Indicates if this symbol is deprecated.
|
||||
*/
|
||||
deprecated?: boolean;
|
||||
|
||||
/**
|
||||
* The location of this symbol. The location's range is used by a tool
|
||||
* to reveal the location in the editor. If the symbol is selected in the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue