(location: number[], visible: boolean)
| 887 | } |
| 888 | |
| 889 | setViewVisible(location: number[], visible: boolean): void { |
| 890 | if (this.hasMaximizedView()) { |
| 891 | this.exitMaximizedView(); |
| 892 | } |
| 893 | |
| 894 | const [rest, index] = tail(location); |
| 895 | const [, parent] = this.getNode(rest); |
| 896 | |
| 897 | if (!(parent instanceof BranchNode)) { |
| 898 | throw new Error('Invalid from location'); |
| 899 | } |
| 900 | |
| 901 | this._onDidViewVisibilityChange.fire(); |
| 902 | |
| 903 | parent.setChildVisible(index, visible); |
| 904 | } |
| 905 | |
| 906 | public moveView(parentLocation: number[], from: number, to: number): void { |
| 907 | if (this.hasMaximizedView()) { |
no test coverage detected