mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 11:35:42 -06:00
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…
x
Reference in New Issue
Block a user