Merge branch 'main' into aiday/limitingWidthOfHover

This commit is contained in:
Alexandru Dima
2023-08-11 17:17:07 +02:00
committed by GitHub
1051 changed files with 51424 additions and 15616 deletions

View File

@@ -28,7 +28,7 @@
}
.monaco-hover .markdown-hover > .hover-contents:not(.code-hover-contents) {
max-width: 500px;
max-width: var(--hover-maxWidth, 500px);
word-wrap: break-word;
}

View File

@@ -9,6 +9,7 @@ import { DomScrollableElement } from 'vs/base/browser/ui/scrollbar/scrollableEle
import { KeyCode } from 'vs/base/common/keyCodes';
import { Disposable } from 'vs/base/common/lifecycle';
import 'vs/css!./hover';
import { localize } from 'vs/nls';
const $ = dom.$;
@@ -94,3 +95,7 @@ export class HoverAction extends Disposable {
}
}
}
export function getHoverAriaLabel(shouldHaveHint?: boolean, keybinding?: string | null): string | undefined {
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.") : '';
}