diff --git a/src/harness/fourslash.ts b/src/harness/fourslash.ts index eae34cfc082..19ea8927910 100644 --- a/src/harness/fourslash.ts +++ b/src/harness/fourslash.ts @@ -376,7 +376,7 @@ module FourSlash { } private getFileContent(fileName: string): string { - var script = this.languageServiceAdaptorHost.getScriptInfo(this.activeFile.fileName); + var script = this.languageServiceAdaptorHost.getScriptInfo(fileName); return script.content; }