mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
Merge branch 'main' into fix/janky-scrolling-in-markdown-preview
This commit is contained in:
@@ -9,7 +9,7 @@ const codeLineClass = 'code-line';
|
||||
|
||||
|
||||
export class CodeLineElement {
|
||||
private readonly _detailParentElements: readonly HTMLDetailsElement[];
|
||||
readonly #detailParentElements: readonly HTMLDetailsElement[];
|
||||
|
||||
constructor(
|
||||
readonly element: HTMLElement,
|
||||
@@ -17,11 +17,11 @@ export class CodeLineElement {
|
||||
readonly codeElement?: HTMLElement,
|
||||
readonly endLine?: number,
|
||||
) {
|
||||
this._detailParentElements = Array.from(getParentsWithTagName<HTMLDetailsElement>(element, 'DETAILS'));
|
||||
this.#detailParentElements = Array.from(getParentsWithTagName<HTMLDetailsElement>(element, 'DETAILS'));
|
||||
}
|
||||
|
||||
get isVisible(): boolean {
|
||||
if (this._detailParentElements.some(x => !x.open)) {
|
||||
if (this.#detailParentElements.some(x => !x.open)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user