mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Fix getFileContents so as not to always return the current file
This commit is contained in:
1 parent
40a01a81b3
commit
68beccc480
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user