Update types instantly when the type root changes.

This commit is contained in:
Sheetal Nandi
2017-07-11 14:18:56 -07:00
parent 62871cc0f9
commit 48c651317e
2 changed files with 1 additions and 2 deletions

View File

@@ -595,8 +595,8 @@ namespace ts.server {
private onTypeRootFileChanged(project: ConfiguredProject, fileName: string) {
this.logger.info(`Type root file ${fileName} changed`);
project.updateTypes();
this.throttledOperations.schedule(project.getConfigFilePath() + " * type root", /*delay*/ 250, () => {
project.updateTypes();
this.reloadConfiguredProject(project); // TODO: Figure out why this is needed (should be redundant?)
this.refreshInferredProjects();
});

View File

@@ -294,7 +294,6 @@ namespace ts.server {
updateTypes() {
this.typesVersion++;
this.markAsDirty();
this.updateGraph();
}
close() {