File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -27,12 +27,6 @@ namespace ts {
27
27
} ;
28
28
}
29
29
30
- /** @internal */
31
- export const nonClearingMessageCodes : number [ ] = [
32
- Diagnostics . Found_1_error_Watching_for_file_changes . code ,
33
- Diagnostics . Found_0_errors_Watching_for_file_changes . code
34
- ] ;
35
-
36
30
/**
37
31
* @returns Whether the screen was cleared.
38
32
*/
@@ -41,7 +35,7 @@ namespace ts {
41
35
! options . preserveWatchOutput &&
42
36
! options . extendedDiagnostics &&
43
37
! options . diagnostics &&
44
- ! contains ( nonClearingMessageCodes , diagnostic . code ) ) {
38
+ contains ( screenStartingMessageCodes , diagnostic . code ) ) {
45
39
system . clearScreen ( ) ;
46
40
return true ;
47
41
}
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ namespace ts.tscWatch {
110
110
111
111
function assertWatchDiagnostic ( diagnostic : Diagnostic ) {
112
112
const expected = getWatchDiagnosticWithoutDate ( diagnostic ) ;
113
- if ( ! disableConsoleClears && ! contains ( nonClearingMessageCodes , diagnostic . code ) ) {
113
+ if ( ! disableConsoleClears && contains ( screenStartingMessageCodes , diagnostic . code ) ) {
114
114
assert . equal ( host . screenClears [ screenClears ] , index , `Expected screen clear at this diagnostic: ${ expected } ` ) ;
115
115
screenClears ++ ;
116
116
}
You can’t perform that action at this time.
0 commit comments