提交 87ae3a38 编写于 作者: K Kamran Ayub

Add deprecated support to SuggestDataDto

上级 895d6323
...@@ -1277,6 +1277,13 @@ declare module 'vscode' { ...@@ -1277,6 +1277,13 @@ declare module 'vscode' {
//#region Deprecated support //#region Deprecated support
export interface CompletionItem {
/**
* Indicates if this item is deprecated.
*/
deprecated?: boolean;
}
export enum DiagnosticTag { export enum DiagnosticTag {
/** /**
* Deprecated or obsolete code * Deprecated or obsolete code
......
...@@ -341,6 +341,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha ...@@ -341,6 +341,7 @@ export class MainThreadLanguageFeatures implements MainThreadLanguageFeaturesSha
commitCharacters: data.k, commitCharacters: data.k,
additionalTextEdits: data.l, additionalTextEdits: data.l,
command: data.m, command: data.m,
deprecated: data.n,
// not-standard // not-standard
_id: data.x, _id: data.x,
}; };
......
...@@ -937,6 +937,7 @@ export interface SuggestDataDto { ...@@ -937,6 +937,7 @@ export interface SuggestDataDto {
k/* commitCharacters */?: string[]; k/* commitCharacters */?: string[];
l/* additionalTextEdits */?: ISingleEditOperation[]; l/* additionalTextEdits */?: ISingleEditOperation[];
m/* command */?: modes.Command; m/* command */?: modes.Command;
n/* deprecated */?: boolean;
// not-standard // not-standard
x?: ChainedCacheId; x?: ChainedCacheId;
} }
......
...@@ -736,6 +736,7 @@ class SuggestAdapter { ...@@ -736,6 +736,7 @@ class SuggestAdapter {
k: item.commitCharacters, k: item.commitCharacters,
l: item.additionalTextEdits && item.additionalTextEdits.map(typeConvert.TextEdit.from), l: item.additionalTextEdits && item.additionalTextEdits.map(typeConvert.TextEdit.from),
m: this._commands.toInternal(item.command, disposables), m: this._commands.toInternal(item.command, disposables),
n: item.deprecated
}; };
// 'insertText'-logic // 'insertText'-logic
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册