Fix link handling in viewPane (#15458) (#15468)

This commit is contained in:
Hai Cao
2021-05-13 15:26:01 -07:00
committed by GitHub
parent 6e1f995286
commit 12662f7427

View File

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