chore: internals renaming

This commit is contained in:
mathuo 2024-01-29 22:40:43 +00:00
parent e28c76626f
commit e1849f72a5
No known key found for this signature in database
GPG Key ID: C6EEDEFD6CA07281
4 changed files with 11 additions and 11 deletions

View File

@ -131,12 +131,12 @@ export class BranchNode extends CompositeDisposable implements IView {
return LayoutPriority.Normal;
}
get locked(): boolean {
return this.splitview.locked;
get disabled(): boolean {
return this.splitview.disabled;
}
set locked(value: boolean) {
this.splitview.locked = value;
set disabled(value: boolean) {
this.splitview.disabled = value;
}
constructor(
@ -187,7 +187,7 @@ export class BranchNode extends CompositeDisposable implements IView {
});
}
this.locked = disabled;
this.disabled = disabled;
this.addDisposables(
this._onDidChange,

View File

@ -42,7 +42,7 @@ function flipNode<T extends Node>(
node.styles,
size,
orthogonalSize,
node.locked
node.disabled
);
let totalSize = 0;
@ -350,7 +350,7 @@ export class Gridview implements IDisposable {
const node = branch.pop();
if (node instanceof BranchNode) {
node.locked = value;
node.disabled = value;
branch.push(...node.children);
}
}

View File

@ -25,7 +25,7 @@
height: 100%;
width: 100%;
&.dv-splitview-locked {
&.dv-splitview-disabled {
& > .sash-container > .sash {
pointer-events: none;
}

View File

@ -201,14 +201,14 @@ export class Splitview {
this.updateSashEnablement();
}
get locked(): boolean {
get disabled(): boolean {
return this._disabled;
}
set locked(value: boolean) {
set disabled(value: boolean) {
this._disabled = value;
toggleClass(this.element, 'dv-splitview-locked', value);
toggleClass(this.element, 'dv-splitview-disabled', value);
}
constructor(