Use Harness.isDefaultLibraryFile to detect lib.d.ts

This commit is contained in:
Nathan Shively-Sanders 2017-10-30 10:20:11 -07:00
parent d2771a8e76
commit c5b199014c

View File

@ -268,7 +268,7 @@ namespace Playback {
const files = [];
for (const file of newLog.filesRead) {
if (file.result.contentsPath &&
!/lib\.d\.ts$/.test(file.result.contentsPath) &&
Harness.isDefaultLibraryFile(file.result.contentsPath) &&
/\.[tj]s$/.test(file.result.contentsPath)) {
files.push(file.result.contentsPath);
}