onSourceFileChanged return immediately when info is undefined
This commit is contained in:
parent
d15381682b
commit
48736dea20
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue