File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1414,7 +1414,7 @@ namespace FourSlash {
14141414 return ;
14151415 }
14161416
1417- const incrementalSourceFile = this . languageService . getSourceFile ( this . activeFile . fileName ) ;
1417+ const incrementalSourceFile = this . languageService . getNonBoundSourceFile ( this . activeFile . fileName ) ;
14181418 Utils . assertInvariants ( incrementalSourceFile , /*parent:*/ undefined ) ;
14191419
14201420 const incrementalSyntaxDiagnostics = incrementalSourceFile . parseDiagnostics ;
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ namespace Harness.LanguageService {
423423 getProgram ( ) : ts . Program {
424424 throw new Error ( "Program can not be marshaled across the shim layer." ) ;
425425 }
426- getSourceFile ( fileName : string ) : ts . SourceFile {
426+ getNonBoundSourceFile ( fileName : string ) : ts . SourceFile {
427427 throw new Error ( "SourceFile can not be marshaled across the shim layer." ) ;
428428 }
429429 dispose ( ) : void { this . shim . dispose ( { } ) ; }
Original file line number Diff line number Diff line change @@ -613,7 +613,7 @@ namespace ts.server {
613613 throw new Error ( "SourceFile objects are not serializable through the server protocol." ) ;
614614 }
615615
616- getSourceFile ( fileName : string ) : SourceFile {
616+ getNonBoundSourceFile ( fileName : string ) : SourceFile {
617617 throw new Error ( "SourceFile objects are not serializable through the server protocol." ) ;
618618 }
619619
Original file line number Diff line number Diff line change @@ -1326,7 +1326,7 @@ namespace ts.server {
13261326 }
13271327
13281328 isExternalModule ( filename : string ) : boolean {
1329- const sourceFile = this . languageService . getSourceFile ( filename ) ;
1329+ const sourceFile = this . languageService . getNonBoundSourceFile ( filename ) ;
13301330 return ts . isExternalModule ( sourceFile ) ;
13311331 }
13321332
Original file line number Diff line number Diff line change @@ -1112,7 +1112,7 @@ namespace ts {
11121112
11131113 getProgram ( ) : Program ;
11141114
1115- getSourceFile ( fileName : string ) : SourceFile ;
1115+ /* @internal */ getNonBoundSourceFile ( fileName : string ) : SourceFile ;
11161116
11171117 dispose ( ) : void ;
11181118 }
@@ -6528,7 +6528,7 @@ namespace ts {
65286528 }
65296529
65306530 /// Syntactic features
6531- function getSourceFile ( fileName : string ) : SourceFile {
6531+ function getNonBoundSourceFile ( fileName : string ) : SourceFile {
65326532 return syntaxTreeCache . getCurrentSourceFile ( fileName ) ;
65336533 }
65346534
@@ -7616,7 +7616,7 @@ namespace ts {
76167616 getFormattingEditsAfterKeystroke,
76177617 getDocCommentTemplateAtPosition,
76187618 getEmitOutput,
7619- getSourceFile ,
7619+ getNonBoundSourceFile ,
76207620 getProgram
76217621 } ;
76227622 }
You can’t perform that action at this time.
0 commit comments