@@ -3915,8 +3915,8 @@ declare namespace ts {
3915
3915
getEncodedSyntacticClassifications ( fileName : string , span : TextSpan ) : Classifications ;
3916
3916
getEncodedSemanticClassifications ( fileName : string , span : TextSpan ) : Classifications ;
3917
3917
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 ;
3920
3920
getQuickInfoAtPosition ( fileName : string , position : number ) : QuickInfo ;
3921
3921
getNameOrDottedNameSpan ( fileName : string , startPos : number , endPos : number ) : TextSpan ;
3922
3922
getBreakpointStatementAtPosition ( fileName : string , position : number ) : TextSpan ;
@@ -4296,6 +4296,7 @@ declare namespace ts {
4296
4296
*/
4297
4297
replacementSpan ?: TextSpan ;
4298
4298
hasAction ?: true ;
4299
+ source ?: string ;
4299
4300
}
4300
4301
interface CompletionEntryDetails {
4301
4302
name : string ;
@@ -4305,6 +4306,7 @@ declare namespace ts {
4305
4306
documentation : SymbolDisplayPart [ ] ;
4306
4307
tags : JSDocTagInfo [ ] ;
4307
4308
codeActions ?: CodeAction [ ] ;
4309
+ source ?: SymbolDisplayPart [ ] ;
4308
4310
}
4309
4311
interface OutliningSpan {
4310
4312
/** The span of the document to actually collapse. */
@@ -6031,7 +6033,11 @@ declare namespace ts.server.protocol {
6031
6033
/**
6032
6034
* Names of one or more entries for which to obtain details.
6033
6035
*/
6034
- entryNames : string [ ] ;
6036
+ entryNames : ( string | CompletionEntryIdentifier ) [ ] ;
6037
+ }
6038
+ interface CompletionEntryIdentifier {
6039
+ name : string ;
6040
+ source : string ;
6035
6041
}
6036
6042
/**
6037
6043
* Completion entry details request; value of command field is
@@ -6087,6 +6093,10 @@ declare namespace ts.server.protocol {
6087
6093
* made to avoid errors. The CompletionEntryDetails will have these actions.
6088
6094
*/
6089
6095
hasAction ?: true ;
6096
+ /**
6097
+ * Identifier (not necessarily human-readable) identifying where this completion came from.
6098
+ */
6099
+ source ?: string ;
6090
6100
}
6091
6101
/**
6092
6102
* Additional completion entry details, available on demand
@@ -6120,6 +6130,10 @@ declare namespace ts.server.protocol {
6120
6130
* The associated code actions for this entry
6121
6131
*/
6122
6132
codeActions ?: CodeAction [ ] ;
6133
+ /**
6134
+ * Human-readable description of the `source` from the CompletionEntry.
6135
+ */
6136
+ source ?: SymbolDisplayPart [ ] ;
6123
6137
}
6124
6138
interface CompletionsResponse extends Response {
6125
6139
body ?: CompletionEntry [ ] ;
@@ -7227,7 +7241,6 @@ declare namespace ts.server {
7227
7241
getScriptInfo ( uncheckedFileName : string ) : ScriptInfo ;
7228
7242
filesToString ( writeProjectFileNames : boolean ) : string ;
7229
7243
setCompilerOptions ( compilerOptions : CompilerOptions ) : void ;
7230
- reloadScript ( filename : NormalizedPath , tempFileName ?: NormalizedPath ) : boolean ;
7231
7244
protected removeRoot ( info : ScriptInfo ) : void ;
7232
7245
}
7233
7246
/**
0 commit comments