Merge pull request #11764 from Microsoft/vladima/11744

watch configuration files if they exist even if they cannot be parsed
This commit is contained in:
Vladimir Matveev
2016-10-20 21:15:47 -07:00
parent 46f7a0f4a4
commit a477d1f7bb
3 changed files with 63 additions and 16 deletions

View File

@@ -381,8 +381,10 @@ namespace ts.server.typingsInstaller {
if (this.log.isEnabled()) {
this.log.writeLine(`Got FS notification for ${f}, handler is already invoked '${isInvoked}'`);
}
this.sendResponse({ projectName: projectName, kind: "invalidate" });
isInvoked = true;
if (!isInvoked) {
this.sendResponse({ projectName: projectName, kind: "invalidate" });
isInvoked = true;
}
});
watchers.push(w);
}