Skip to content

Commit

Permalink
plugin: include registration of view containers
Browse files Browse the repository at this point in the history
Fixes: #8016

The following pull-request updates the plugin system to include
the registration of `view containers` in the `open view` prefix menu.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Jun 19, 2020
1 parent d58d1ba commit 558df2e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,15 @@ export class PluginViewRegistry implements FrontendApplicationContribution {
commandId: toggleCommandId,
label: options.label
}));
toDispose.push(this.quickView.registerItem({
label: options.label,
open: async () => {
const widget = await this.openViewContainer(id);
if (widget) {
this.shell.activateWidget(widget.id);
}
}
}));
toDispose.push(Disposable.create(async () => {
const widget = await this.getPluginViewContainer(id);
if (widget) {
Expand Down

0 comments on commit 558df2e

Please sign in to comment.