Skip to content
Prev Previous commit
Next Next commit
add a 2 second timeout
  • Loading branch information
DavidKutu committed Jul 31, 2020
commit bbc682cabc46efb4c0de27d32fa583160cd00b92
8 changes: 6 additions & 2 deletions src/client/datascience/gather/gatherListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,16 @@ export class GatherListener implements IInteractiveWindowListener {
break;

case InteractiveWindowMessages.GatherCode:
this.statusBar.show();
setTimeout(() => {
this.statusBar.show();
}, 2000);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make this 2000 a constant? Seems to be repeated at least once and might make it easier to understand why the 2 sec wait.

this.handleMessage(message, payload, this.doGather);
break;

case InteractiveWindowMessages.GatherCodeToScript:
this.statusBar.show();
setTimeout(() => {
this.statusBar.show();
}, 2000);
this.handleMessage(message, payload, this.doGatherToScript);
break;

Expand Down