From 68beccc4802d7f294a93e53f52301b7e73568970 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Wed, 4 Feb 2015 20:35:21 -0800 Subject: [PATCH] Fix getFileContents so as not to always return the current file --- src/harness/fourslash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }