Skip to content

Commit

Permalink
fix #4214: make OutputChannel.show actually show
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
  • Loading branch information
akosyakov committed Feb 1, 2019
1 parent e8821cb commit baa82bb
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,14 @@ export class OutputChannelRegistryMainImpl implements OutputChannelRegistryMain
return Promise.resolve();
}

$reveal(channelName: string, preserveFocus: boolean): PromiseLike<void> {
async $reveal(channelName: string, preserveFocus: boolean): Promise<void> {
const outputChannel = this.getChannel(channelName);
if (outputChannel) {
const activate = !preserveFocus;
const reveal = preserveFocus;
this.commonOutputWidget = await this.outputContribution.openView({ activate, reveal });
outputChannel.setVisibility(true);
return this.outputContribution.openView({ activate: !preserveFocus }).then((outputWidget: OutputWidget) => {
this.commonOutputWidget = outputWidget;
return Promise.resolve();
});
}

return Promise.resolve();
}

$close(channelName: string): PromiseLike<void> {
Expand Down

0 comments on commit baa82bb

Please sign in to comment.