mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
only apply hint if enabled
This commit is contained in:
@@ -97,5 +97,5 @@ export class HoverAction extends Disposable {
|
||||
}
|
||||
|
||||
export function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: string | null): string | undefined {
|
||||
return shouldHaveHint ? localize('acessibleViewHint', "Inspect this in the accessible view with {0}.", keybinding) : localize('acessibleViewHintNoKbOpen', "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.");
|
||||
return shouldHaveHint && keybinding ? localize('acessibleViewHint', "Inspect this in the accessible view with {0}.", keybinding) : shouldHaveHint ? localize('acessibleViewHintNoKbOpen', "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding.") : '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user