mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 01:25:37 -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user