Fix link handling in viewPane (#15458)

This commit is contained in:
Hai Cao
2021-05-13 13:35:38 -07:00
committed by GitHub
parent 0e24fc09b5
commit 8111c536e1

View File

@@ -576,7 +576,7 @@ export abstract class ViewPane extends Pane implements IView {
button.label = node.label;
button.onDidClick(_ => {
this.telemetryService.publicLog2<{ viewId: string, uri: string }, WelcomeActionClassification>('views.welcomeAction', { viewId: this.id, uri: node.href });
this.openerService.open(node.href);
this.openerService.open(node.href, { allowCommands: true });
}, null, disposables);
disposables.add(button);
disposables.add(attachButtonStyler(button, this.themeService));