From c5b199014cdfb72b1741f545d6f44695abb8a428 Mon Sep 17 00:00:00 2001 From: Nathan Shively-Sanders Date: Mon, 30 Oct 2017 10:20:11 -0700 Subject: [PATCH] Use Harness.isDefaultLibraryFile to detect lib.d.ts --- src/harness/loggedIO.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/harness/loggedIO.ts b/src/harness/loggedIO.ts index 888ee2fe2e1..55be4068e83 100644 --- a/src/harness/loggedIO.ts +++ b/src/harness/loggedIO.ts @@ -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); }