mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Update types instantly when the type root changes.
This commit is contained in:
1 parent
62871cc0f9
commit
48c651317e
2 files changed
+1
-2
No files matched your search
@@ -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();
|
||||
});
|
||||
|
||||
@@ -294,7 +294,6 @@ namespace ts.server {
|
||||
updateTypes() {
|
||||
this.typesVersion++;
|
||||
this.markAsDirty();
|
||||
this.updateGraph();
|
||||
}
|
||||
|
||||
close() {
|
||||
|
||||
Reference in new issue
Block a user