Skip to content

Commit

Permalink
display diagnotic messages for external files
Browse files Browse the repository at this point in the history
  • Loading branch information
andrius-pra committed Jun 6, 2019
1 parent ec4ca6b commit 1978618
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server/project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1978618

Please sign in to comment.