Skip to content

Commit

Permalink
Merge pull request #13138 from Microsoft/mergeMaster1222
Browse files Browse the repository at this point in the history
Merge master 12/22
  • Loading branch information
mhegazy committed Dec 22, 2016
2 parents 2cf9979 + 50288d9 commit 5f720c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/compiler/moduleNameResolver.ts
Expand Up @@ -818,7 +818,9 @@ namespace ts {
if (resolved) {
return resolved;
}
trace(state.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromExactFile);
if (state.traceEnabled) {
trace(state.host, Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromExactFile);
}
}
const resolved = tryAddingExtensions(mainOrTypesFile, Extensions.TypeScript, failedLookupLocations, onlyRecordFailures, state);
if (resolved) {
Expand Down

0 comments on commit 5f720c2

Please sign in to comment.