Skip to content

Commit f943121

Browse files
committed
Log more info about compilation
1 parent 1fb3593 commit f943121

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/watch.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,7 @@ namespace ts {
480480
const watchFilePath = compilerOptions.extendedDiagnostics ? ts.addFilePathWatcherWithLogging : ts.addFilePathWatcher;
481481
const watchDirectoryWorker = compilerOptions.extendedDiagnostics ? ts.addDirectoryWatcherWithLogging : ts.addDirectoryWatcher;
482482

483+
writeLog(`Current directory: ${currentDirectory} CaseSensitiveFileNames: ${useCaseSensitiveFileNames}`);
483484
if (configFileName) {
484485
watchFile(host, configFileName, scheduleProgramReload, writeLog);
485486
}
@@ -573,6 +574,10 @@ namespace ts {
573574
}
574575

575576
// Compile the program
577+
if (loggingEnabled) {
578+
writeLog(`CreatingProgramWith::\n roots: ${JSON.stringify(rootFileNames)}\n options: ${JSON.stringify(compilerOptions)}`);
579+
}
580+
576581
const needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !program;
577582
hasChangedCompilerOptions = false;
578583
resolutionCache.startCachingPerDirectoryResolution();

0 commit comments

Comments
 (0)