Skip to content

Commit

Permalink
Merge pull request #149 from microsoft/chgagnon/outputChannelNotTakeF…
Browse files Browse the repository at this point in the history
…ocus

Change output channel to not take focus when installing service
  • Loading branch information
Charles-Gagnon authored Jul 1, 2019
2 parents bf0ac27 + 8f9929f commit 96e1f90
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ function generateServerOptions(executablePath: string): ServerOptions {
function generateHandleServerProviderEvent() {
let dots = 0;
return (e: string, ...args: any[]) => {
outputChannel.show();
statusView.show();
switch (e) {
case Events.INSTALL_START:
outputChannel.show(true);
statusView.show();
outputChannel.appendLine(`Installing ${Constants.serviceName} service to ${args[0]}`);
statusView.text = 'Installing Service';
break;
Expand All @@ -147,6 +147,9 @@ function generateHandleServerProviderEvent() {
case Events.DOWNLOAD_END:
outputChannel.appendLine('Done!');
break;
default:
console.error(`Unknown event from Server Provider ${e}`);
break;
}
};
}
Expand Down

0 comments on commit 96e1f90

Please sign in to comment.