diff --git a/src/server/project.ts b/src/server/project.ts index e10a0988f7185..ceca722be8912 100644 --- a/src/server/project.ts +++ b/src/server/project.ts @@ -762,6 +762,7 @@ namespace ts.server { containsScriptInfo(info: ScriptInfo): boolean { if (this.isRoot(info)) return true; if (!this.program) return false; + if (this.externalFiles && this.externalFiles.indexOf(info.path) !== 1) return true; const file = this.program.getSourceFileByPath(info.path); return !!file && file.resolvedPath === info.path; }