suggest - don't send default ranges for each item

This commit is contained in:
Johannes Rieken
2020-01-23 15:29:39 +01:00
parent 1a5ffab445
commit 5d85d2eeef
3 changed files with 64 additions and 50 deletions

View File

@@ -1030,11 +1030,17 @@ export interface ISuggestDataDto {
x?: ChainedCacheId;
}
export const enum ISuggestResultDtoField {
defaultRanges = 'a',
completions = 'b',
isIncomplete = 'c'
}
export interface ISuggestResultDto {
[ISuggestResultDtoField.defaultRanges]: { insert: IRange, replace: IRange; };
[ISuggestResultDtoField.completions]: ISuggestDataDto[];
[ISuggestResultDtoField.isIncomplete]: undefined | true;
x?: number;
a: { insert: IRange, replace: IRange; };
b: ISuggestDataDto[];
c?: true;
}
export interface ISignatureHelpDto {