mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
Use Harness.isDefaultLibraryFile to detect lib.d.ts
This commit is contained in:
parent
d2771a8e76
commit
c5b199014c
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user