mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -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:
@@ -50,7 +50,7 @@ export class Link extends Disposable {
|
||||
|
||||
this._register(onOpen(e => {
|
||||
EventHelper.stop(e, true);
|
||||
openerService.open(link.href);
|
||||
openerService.open(link.href, { allowCommands: true });
|
||||
}));
|
||||
|
||||
this.applyStyles();
|
||||
|
||||
@@ -29,9 +29,18 @@ type OpenInternalOptions = {
|
||||
* action, such as keyboard or mouse usage.
|
||||
*/
|
||||
readonly fromUserGesture?: boolean;
|
||||
|
||||
/**
|
||||
* Allow command links to be handled.
|
||||
*/
|
||||
readonly allowCommands?: boolean;
|
||||
};
|
||||
|
||||
type OpenExternalOptions = { readonly openExternal?: boolean; readonly allowTunneling?: boolean };
|
||||
export type OpenExternalOptions = {
|
||||
readonly openExternal?: boolean;
|
||||
readonly allowTunneling?: boolean;
|
||||
readonly allowContributedOpeners?: boolean | string;
|
||||
};
|
||||
|
||||
export type OpenOptions = OpenInternalOptions & OpenExternalOptions;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user