Helps to check in the test changes, too

This commit is contained in:
Josh Goldberg 2018-04-17 08:57:05 -07:00
parent bc9ad90a81
commit c974b2ced7
2 changed files with 5 additions and 2 deletions

View File

@ -45,7 +45,7 @@ namespace ts {
}
/** @internal */
const screenStartingMessageCodes: number[] = [
export const screenStartingMessageCodes: number[] = [
Diagnostics.Starting_compilation_in_watch_mode.code,
Diagnostics.File_change_detected_Starting_incremental_compilation.code,
];

View File

@ -124,7 +124,10 @@ namespace ts.tscWatch {
}
function getWatchDiagnosticWithoutDate(diagnostic: Diagnostic) {
return ` - ${flattenDiagnosticMessageText(diagnostic.messageText, host.newLine)}${host.newLine + host.newLine + host.newLine}`;
const newLines = contains(screenStartingMessageCodes, diagnostic.code)
? `${host.newLine}${host.newLine}`
: host.newLine;
return ` - ${flattenDiagnosticMessageText(diagnostic.messageText, host.newLine)}${newLines}`;
}
}