Skip to content

Commit

Permalink
Fixed flawed registerToolbarItems for the Output
Browse files Browse the repository at this point in the history
A `TabBarToolbarContribution` cannot implement `registerToolbarItems` in
an async way.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
  • Loading branch information
Akos Kitta authored and paul-marechal committed Mar 4, 2021
1 parent 76af952 commit 5236037
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -51,7 +51,7 @@ export class OutputToolbarContribution implements TabBarToolbarContribution {
this.outputChannelManager.onChannelWasHidden(fireChannelsChanged);
}

async registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): Promise<void> {
registerToolbarItems(toolbarRegistry: TabBarToolbarRegistry): void {
toolbarRegistry.registerItem({
id: 'channels',
render: () => this.renderChannelSelector(),

0 comments on commit 5236037

Please sign in to comment.