File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
packages/svelte-check/src Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ function instantiateWriter(opts: SvelteCheckCliOptions): Writer {
177177 return new HumanFriendlyWriter (
178178 process . stdout ,
179179 opts . outputFormat === 'human-verbose' ,
180+ opts . watch ,
180181 filter
181182 ) ;
182183 } else {
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export class HumanFriendlyWriter implements Writer {
2323 constructor (
2424 private stream : Writable ,
2525 private isVerbose = true ,
26+ private isWatchMode = false ,
2627 private diagnosticFilter : DiagnosticFilter = DEFAULT_FILTER
2728 ) { }
2829
@@ -37,10 +38,10 @@ export class HumanFriendlyWriter implements Writer {
3738
3839 if ( this . isVerbose ) {
3940 this . stream . write ( '\n' ) ;
41+ this . stream . write ( '====================================\n' ) ;
4042 this . stream . write ( `Loading svelte-check in workspace: ${ workspaceDir } ` ) ;
4143 this . stream . write ( '\n' ) ;
4244 this . stream . write ( 'Getting Svelte diagnostics...\n' ) ;
43- this . stream . write ( '====================================\n' ) ;
4445 this . stream . write ( '\n' ) ;
4546 }
4647 }
@@ -120,6 +121,9 @@ export class HumanFriendlyWriter implements Writer {
120121 } else {
121122 this . stream . write ( chalk . green ( message ) ) ;
122123 }
124+ if ( this . isWatchMode ) {
125+ this . stream . write ( 'Watching for file changes...' ) ;
126+ }
123127 }
124128
125129 failure ( err : Error ) {
You can’t perform that action at this time.
0 commit comments