mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 20:14:01 -06:00
Fix free function bug in cachingInServerLSHost
This commit is contained in:
parent
04e7d81105
commit
a4f1154377
@ -123,7 +123,7 @@ module ts {
|
||||
}
|
||||
fileExistsIsCalled = true;
|
||||
assert.isTrue(fileName.indexOf('/f2.') !== -1);
|
||||
return originalFileExists(fileName);
|
||||
return originalFileExists.call(serverHost, fileName);
|
||||
};
|
||||
let newContent = `import {x} from "f2"`;
|
||||
rootScriptInfo.editContent(0, rootScriptInfo.content.length, newContent);
|
||||
@ -147,7 +147,7 @@ module ts {
|
||||
}
|
||||
fileExistsCalled = true;
|
||||
assert.isTrue(fileName.indexOf('/f1.') !== -1);
|
||||
return originalFileExists(fileName);
|
||||
return originalFileExists.call(serverHost, fileName);
|
||||
};
|
||||
|
||||
let newContent = `import {x} from "f1"`;
|
||||
@ -192,7 +192,7 @@ module ts {
|
||||
fileExistsCalledForBar = fileName.indexOf("/bar.") !== -1;
|
||||
}
|
||||
|
||||
return originalFileExists(fileName);
|
||||
return originalFileExists.call(serverHost, fileName);
|
||||
};
|
||||
|
||||
let { project, rootScriptInfo } = createProject(root.name, serverHost);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user