Merge pull request #465 from rcjsuen/deprecated

Add deprecated property to CompletionItem and SymbolInformation
This commit is contained in:
Dirk Bäumer 2018-05-08 11:57:07 +02:00 committed by GitHub
commit e89b3ff501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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