mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 11:43:18 -05:00
Update types instantly when the type root changes.
This commit is contained in:
@@ -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