diff --git a/src/harness/loggedIO.ts b/src/harness/loggedIO.ts index a60c7341206c8..81b5e4a672d54 100644 --- a/src/harness/loggedIO.ts +++ b/src/harness/loggedIO.ts @@ -224,12 +224,7 @@ namespace Playback { recordLog.directoriesRead.push(logEntry); return result; }, - (path, extension, exclude) => findResultByPath(wrapper, - replayLog.directoriesRead.filter( - d => { - return d.extension === extension; - } - ), path)); + (path, extension, exclude) => findResultByPath(wrapper, replayLog.directoriesRead, path)); wrapper.writeFile = recordReplay(wrapper.writeFile, underlying)( (path: string, contents: string) => callAndRecord(underlying.writeFile(path, contents), recordLog.filesWritten, { path, contents, bom: false }),