Fix getFileContents so as not to always return the current file

This commit is contained in:
Mohamed Hegazy 2015-02-04 20:35:21 -08:00
parent 40a01a81b3
commit 68beccc480

View File

@ -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;
}