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