Skip to content

Commit 1359a93

Browse files
committed
Update LKG
1 parent a7e172b commit 1359a93

File tree

8 files changed

+383
-297
lines changed

8 files changed

+383
-297
lines changed

lib/protocol.d.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,11 @@ declare namespace ts.server.protocol {
12251225
/**
12261226
* Names of one or more entries for which to obtain details.
12271227
*/
1228-
entryNames: string[];
1228+
entryNames: (string | CompletionEntryIdentifier)[];
1229+
}
1230+
interface CompletionEntryIdentifier {
1231+
name: string;
1232+
source: string;
12291233
}
12301234
/**
12311235
* Completion entry details request; value of command field is
@@ -1281,6 +1285,10 @@ declare namespace ts.server.protocol {
12811285
* made to avoid errors. The CompletionEntryDetails will have these actions.
12821286
*/
12831287
hasAction?: true;
1288+
/**
1289+
* Identifier (not necessarily human-readable) identifying where this completion came from.
1290+
*/
1291+
source?: string;
12841292
}
12851293
/**
12861294
* Additional completion entry details, available on demand
@@ -1314,6 +1322,10 @@ declare namespace ts.server.protocol {
13141322
* The associated code actions for this entry
13151323
*/
13161324
codeActions?: CodeAction[];
1325+
/**
1326+
* Human-readable description of the `source` from the CompletionEntry.
1327+
*/
1328+
source?: SymbolDisplayPart[];
13171329
}
13181330
interface CompletionsResponse extends Response {
13191331
body?: CompletionEntry[];

lib/tsserver.js

Lines changed: 82 additions & 78 deletions
Large diffs are not rendered by default.

lib/tsserverlibrary.d.ts

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3915,8 +3915,8 @@ declare namespace ts {
39153915
getEncodedSyntacticClassifications(fileName: string, span: TextSpan): Classifications;
39163916
getEncodedSemanticClassifications(fileName: string, span: TextSpan): Classifications;
39173917
getCompletionsAtPosition(fileName: string, position: number): CompletionInfo;
3918-
getCompletionEntryDetails(fileName: string, position: number, entryName: string, options?: FormatCodeOptions | FormatCodeSettings): CompletionEntryDetails;
3919-
getCompletionEntrySymbol(fileName: string, position: number, entryName: string): Symbol;
3918+
getCompletionEntryDetails(fileName: string, position: number, name: string, options?: FormatCodeOptions | FormatCodeSettings, source?: string): CompletionEntryDetails;
3919+
getCompletionEntrySymbol(fileName: string, position: number, name: string, source?: string): Symbol;
39203920
getQuickInfoAtPosition(fileName: string, position: number): QuickInfo;
39213921
getNameOrDottedNameSpan(fileName: string, startPos: number, endPos: number): TextSpan;
39223922
getBreakpointStatementAtPosition(fileName: string, position: number): TextSpan;
@@ -4296,6 +4296,7 @@ declare namespace ts {
42964296
*/
42974297
replacementSpan?: TextSpan;
42984298
hasAction?: true;
4299+
source?: string;
42994300
}
43004301
interface CompletionEntryDetails {
43014302
name: string;
@@ -4305,6 +4306,7 @@ declare namespace ts {
43054306
documentation: SymbolDisplayPart[];
43064307
tags: JSDocTagInfo[];
43074308
codeActions?: CodeAction[];
4309+
source?: SymbolDisplayPart[];
43084310
}
43094311
interface OutliningSpan {
43104312
/** The span of the document to actually collapse. */
@@ -6031,7 +6033,11 @@ declare namespace ts.server.protocol {
60316033
/**
60326034
* Names of one or more entries for which to obtain details.
60336035
*/
6034-
entryNames: string[];
6036+
entryNames: (string | CompletionEntryIdentifier)[];
6037+
}
6038+
interface CompletionEntryIdentifier {
6039+
name: string;
6040+
source: string;
60356041
}
60366042
/**
60376043
* Completion entry details request; value of command field is
@@ -6087,6 +6093,10 @@ declare namespace ts.server.protocol {
60876093
* made to avoid errors. The CompletionEntryDetails will have these actions.
60886094
*/
60896095
hasAction?: true;
6096+
/**
6097+
* Identifier (not necessarily human-readable) identifying where this completion came from.
6098+
*/
6099+
source?: string;
60906100
}
60916101
/**
60926102
* Additional completion entry details, available on demand
@@ -6120,6 +6130,10 @@ declare namespace ts.server.protocol {
61206130
* The associated code actions for this entry
61216131
*/
61226132
codeActions?: CodeAction[];
6133+
/**
6134+
* Human-readable description of the `source` from the CompletionEntry.
6135+
*/
6136+
source?: SymbolDisplayPart[];
61236137
}
61246138
interface CompletionsResponse extends Response {
61256139
body?: CompletionEntry[];
@@ -7227,7 +7241,6 @@ declare namespace ts.server {
72277241
getScriptInfo(uncheckedFileName: string): ScriptInfo;
72287242
filesToString(writeProjectFileNames: boolean): string;
72297243
setCompilerOptions(compilerOptions: CompilerOptions): void;
7230-
reloadScript(filename: NormalizedPath, tempFileName?: NormalizedPath): boolean;
72317244
protected removeRoot(info: ScriptInfo): void;
72327245
}
72337246
/**

0 commit comments

Comments
 (0)