* @returns Whether the screen was cleared.
(system, diagnostic, options)
| 122712 | * @returns Whether the screen was cleared. |
| 122713 | */ |
| 122714 | function clearScreenIfNotWatchingForFileChanges(system, diagnostic, options) { |
| 122715 | if (system.clearScreen && |
| 122716 | !options.preserveWatchOutput && |
| 122717 | !options.extendedDiagnostics && |
| 122718 | !options.diagnostics && |
| 122719 | ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) { |
| 122720 | system.clearScreen(); |
| 122721 | return true; |
| 122722 | } |
| 122723 | return false; |
| 122724 | } |
| 122725 | ts.screenStartingMessageCodes = [ |
| 122726 | ts.Diagnostics.Starting_compilation_in_watch_mode.code, |
| 122727 | ts.Diagnostics.File_change_detected_Starting_incremental_compilation.code, |
no test coverage detected