mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 01:25:38 -05:00
Links handling in commands (#15118)
* format * update external options type * add command flag for command * Allow commands in Notebooks Co-authored-by: chgagnon <chgagnon@microsoft.com>
This commit is contained in:
@@ -128,8 +128,10 @@ export default class WebViewComponent extends ComponentBase<WebViewProperties> i
|
||||
if (!link) {
|
||||
return;
|
||||
}
|
||||
if (WebViewComponent.standardSupportedLinkSchemes.indexOf(link.scheme) >= 0 || this.enableCommandUris && link.scheme === 'command') {
|
||||
if (WebViewComponent.standardSupportedLinkSchemes.indexOf(link.scheme) >= 0) {
|
||||
this._openerService.open(link);
|
||||
} else if (this.enableCommandUris && link.scheme === 'command') {
|
||||
this._openerService.open(link, { allowCommands: true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ export class LinkHandlerDirective {
|
||||
this.openerService.open(uri, { openExternal: true }).catch(onUnexpectedError);
|
||||
}
|
||||
else {
|
||||
this.openerService.open(uri).catch(onUnexpectedError);
|
||||
this.openerService.open(uri, { allowCommands: true }).catch(onUnexpectedError);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user