mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-24 22:00:30 -04:00
This reverts commit d15a3fcc98.
This commit is contained in:
@@ -111,23 +111,6 @@ class LinkOccurrence {
|
||||
}
|
||||
|
||||
private static _getOptions(link: Link, useMetaKey: boolean, isActive: boolean): ModelDecorationOptions {
|
||||
const options = { ...this._getBaseOptions(link, useMetaKey, isActive) };
|
||||
if (typeof link.tooltip === 'string') {
|
||||
const message = new MarkdownString().appendText(
|
||||
platform.isMacintosh
|
||||
? useMetaKey
|
||||
? nls.localize('links.custom.mac', "Cmd + click to {0}", link.tooltip)
|
||||
: nls.localize('links.custom.mac.al', "Option + click to {0}", link.tooltip)
|
||||
: useMetaKey
|
||||
? nls.localize('links.custom', "Ctrl + click to {0}", link.tooltip)
|
||||
: nls.localize('links.custom.al', "Alt + click to {0}", link.tooltip)
|
||||
);
|
||||
options.hoverMessage = message;
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
private static _getBaseOptions(link: Link, useMetaKey: boolean, isActive: boolean): ModelDecorationOptions {
|
||||
if (link.url && /^command:/i.test(link.url.toString())) {
|
||||
if (useMetaKey) {
|
||||
return (isActive ? decoration.metaCommandActive : decoration.metaCommand);
|
||||
|
||||
Reference in New Issue
Block a user