fix issues, describe disable action when the view is opened not on the prior element

This commit is contained in:
meganrogge
2023-08-04 14:35:09 -07:00
parent deb3011d37
commit bc1404e5db
3 changed files with 32 additions and 16 deletions

View File

@@ -96,10 +96,6 @@ export class HoverAction extends Disposable {
}
}
export function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: any): string | undefined {
if (shouldHaveHint) {
const hint = keybinding ? localize('hoverAccessibleViewHint', "Inspect this in the accessible view with {0}", keybinding) : localize('hoverAccessibleViewHintNoKb', "Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding");
return hint;
}
return;
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.");
}