MCPcopy Index your code
hub / github.com/nodejs/node / clearScreenIfNotWatchingForFileChanges

Function clearScreenIfNotWatchingForFileChanges

test/fixtures/snapshot/typescript.js:122714–122724  ·  view source on GitHub ↗

* @returns Whether the screen was cleared.

(system, diagnostic, options)

Source from the content-addressed store, hash-verified

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,

Callers 1

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected