mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
[in progress] project system work - major code reorg
This commit is contained in:
@@ -297,7 +297,7 @@ namespace ts.server {
|
||||
return this.currentVersion;
|
||||
}
|
||||
|
||||
reloadFromFile(filename: string, cb?: () => void) {
|
||||
reloadFromFile(filename: string) {
|
||||
let content = this.host.readFile(filename);
|
||||
// If the file doesn't exist or cannot be read, we should
|
||||
// wipe out its cached content on the server to avoid side effects.
|
||||
@@ -305,8 +305,6 @@ namespace ts.server {
|
||||
content = "";
|
||||
}
|
||||
this.reload(content);
|
||||
if (cb)
|
||||
cb();
|
||||
}
|
||||
|
||||
// reload whole script, leaving no change history behind reload
|
||||
|
||||
Reference in New Issue
Block a user