Skip to content

Commit 68beccc

Browse files
committed
Fix getFileContents so as not to always return the current file
1 parent 40a01a8 commit 68beccc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/harness/fourslash.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ module FourSlash {
376376
}
377377

378378
private getFileContent(fileName: string): string {
379-
var script = this.languageServiceAdaptorHost.getScriptInfo(this.activeFile.fileName);
379+
var script = this.languageServiceAdaptorHost.getScriptInfo(fileName);
380380
return script.content;
381381
}
382382

0 commit comments

Comments
 (0)