Skip to content

Commit

Permalink
feat(cli): log when stop watching (#2314)
Browse files Browse the repository at this point in the history
  • Loading branch information
barak007 authored Feb 7, 2022
1 parent ae7ff21 commit 4aea144
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ export const buildMessages = {
START_WATCHING() {
return 'Start watching...';
},
STOP_WATCHING() {
return 'Stop watching.';
},
CONTINUE_WATCH() {
return `Watching files...`;
},
Expand Down
1 change: 1 addition & 0 deletions packages/cli/src/watch-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export class WatchHandler {
}

public async stop() {
this.log(buildMessages.STOP_WATCHING(), levels.info);
this.diagnosticsManager.clear();
this.fileSystem.watchService.removeGlobalListener(this.listener);

Expand Down

0 comments on commit 4aea144

Please sign in to comment.