onSourceFileChanged return immediately when info is undefined

This commit is contained in:
Jason Ramsay 2016-08-30 16:02:01 -07:00
parent d15381682b
commit 48736dea20

View file

@ -312,6 +312,7 @@ namespace ts.server {
const info = this.getScriptInfoForNormalizedPath(fileName);
if (!info) {
this.logger.info(`Error: got watch notification for unknown file: ${fileName}`);
return;
}
if (!this.host.fileExists(fileName)) {