[in progress] project system work - major code reorg

This commit is contained in:
Vladimir Matveev committed 2016-06-24 14:30:45 -07:00
1 parent cf616dc292
commit cefaa171eb
7 files changed
+386 -330

No files matched your search

+1 -3
View File
@@ -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