diff --git a/lib/tsserver.js b/lib/tsserver.js index a86fd0178f06e..ab82b6e586327 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -49453,6 +49453,9 @@ var ts; function getNonBoundSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } + function getSourceFile(fileName) { + return getNonBoundSourceFile(fileName); + } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); var node = ts.getTouchingPropertyName(sourceFile, startPos); @@ -50273,6 +50276,7 @@ var ts; isValidBraceCompletionAtPosition: isValidBraceCompletionAtPosition, getEmitOutput: getEmitOutput, getNonBoundSourceFile: getNonBoundSourceFile, + getSourceFile: getSourceFile, getProgram: getProgram }; } diff --git a/lib/tsserverlibrary.d.ts b/lib/tsserverlibrary.d.ts index 62f22632feb2a..524d03f2e3f66 100644 --- a/lib/tsserverlibrary.d.ts +++ b/lib/tsserverlibrary.d.ts @@ -8001,6 +8001,7 @@ declare namespace ts { getEmitOutput(fileName: string): EmitOutput; getProgram(): Program; getNonBoundSourceFile(fileName: string): SourceFile; + getSourceFile(fileName: string): SourceFile; dispose(): void; } interface Classifications { diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index a494af9cc33ef..52eca987d951f 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -49453,6 +49453,9 @@ var ts; function getNonBoundSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } + function getSourceFile(fileName) { + return getNonBoundSourceFile(fileName); + } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); var node = ts.getTouchingPropertyName(sourceFile, startPos); @@ -50273,6 +50276,7 @@ var ts; isValidBraceCompletionAtPosition: isValidBraceCompletionAtPosition, getEmitOutput: getEmitOutput, getNonBoundSourceFile: getNonBoundSourceFile, + getSourceFile: getSourceFile, getProgram: getProgram }; } diff --git a/lib/typescript.js b/lib/typescript.js index f4d1a6ceff633..99e31575e2cdd 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -58753,6 +58753,9 @@ var ts; function getNonBoundSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } + function getSourceFile(fileName) { + return getNonBoundSourceFile(fileName); + } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); // Get node at the location @@ -59761,6 +59764,7 @@ var ts; isValidBraceCompletionAtPosition: isValidBraceCompletionAtPosition, getEmitOutput: getEmitOutput, getNonBoundSourceFile: getNonBoundSourceFile, + getSourceFile: getSourceFile, getProgram: getProgram }; } diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index f4d1a6ceff633..99e31575e2cdd 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -58753,6 +58753,9 @@ var ts; function getNonBoundSourceFile(fileName) { return syntaxTreeCache.getCurrentSourceFile(fileName); } + function getSourceFile(fileName) { + return getNonBoundSourceFile(fileName); + } function getNameOrDottedNameSpan(fileName, startPos, endPos) { var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName); // Get node at the location @@ -59761,6 +59764,7 @@ var ts; isValidBraceCompletionAtPosition: isValidBraceCompletionAtPosition, getEmitOutput: getEmitOutput, getNonBoundSourceFile: getNonBoundSourceFile, + getSourceFile: getSourceFile, getProgram: getProgram }; }