@codingame/monaco-vscode-layout-service-override 9.0.2 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/layout.js +23 -21
  2. package/package.json +2 -2
package/layout.js CHANGED
@@ -84,9 +84,10 @@ class LayoutService extends Disposable {
84
84
  isMainEditorLayoutCentered() {
85
85
  return false;
86
86
  }
87
- centerMainEditorLayout() {
87
+ centerMainEditorLayout() { }
88
+ get activeContainer() {
89
+ return this.getContainerFromDocument(getActiveDocument());
88
90
  }
89
- get activeContainer() { return this.getContainerFromDocument(getActiveDocument()); }
90
91
  get containers() {
91
92
  const containers = [];
92
93
  for (const { window } of getWindows()) {
@@ -127,11 +128,15 @@ class LayoutService extends Disposable {
127
128
  this.setPartHidden(this.isActivityBarHidden(), "workbench.parts.activitybar" );
128
129
  this.setPartHidden(!this.configurationService.getValue('workbench.statusBar.visible'), "workbench.parts.statusbar" );
129
130
  this.sideBarPosition = positionFromString(this.configurationService.getValue('workbench.sideBar.location') ?? 'left');
130
- this.panelPosition = positionFromString(this.configurationService.getValue('workbench.panel.defaultLocation') ?? 'bottom');
131
+ this.panelPosition = positionFromString(this.configurationService.getValue('workbench.panel.defaultLocation') ??
132
+ 'bottom');
131
133
  this._register(this.hostService.onDidChangeActiveWindow(() => this.onActiveWindowChanged()));
132
134
  this._register(this.auxiliaryWindowService.onDidOpenAuxiliaryWindow(({ window, disposables }) => {
133
- this._onDidAddContainer.fire({ container: window.container, disposables: new DisposableStore() });
134
- disposables.add(window.onDidLayout(dimension => this.handleContainerDidLayout(window.container, dimension)));
135
+ this._onDidAddContainer.fire({
136
+ container: window.container,
137
+ disposables: new DisposableStore()
138
+ });
139
+ disposables.add(window.onDidLayout((dimension) => this.handleContainerDidLayout(window.container, dimension)));
135
140
  disposables.add(toDisposable(() => this._onDidRemoveContainer.fire(window.container)));
136
141
  }));
137
142
  }
@@ -159,7 +164,7 @@ class LayoutService extends Disposable {
159
164
  if (oldValue !== undefined) {
160
165
  return !oldValue;
161
166
  }
162
- return this.configurationService.getValue("workbench.activityBar.location" ) !== "default" ;
167
+ return (this.configurationService.getValue("workbench.activityBar.location" ) !== "default") ;
163
168
  }
164
169
  focusPart(part) {
165
170
  switch (part) {
@@ -191,8 +196,7 @@ class LayoutService extends Disposable {
191
196
  getDimension(part) {
192
197
  return this.getPart(part)?.dimension;
193
198
  }
194
- toggleMaximizedPanel() {
195
- }
199
+ toggleMaximizedPanel() { }
196
200
  toggleMenuBar() {
197
201
  let currentVisibilityValue = getMenuBarVisibility(this.configurationService);
198
202
  if (typeof currentVisibilityValue !== 'string') {
@@ -200,7 +204,8 @@ class LayoutService extends Disposable {
200
204
  }
201
205
  let newVisibilityValue;
202
206
  if (currentVisibilityValue === 'visible' || currentVisibilityValue === 'classic') {
203
- newVisibilityValue = getTitleBarStyle(this.configurationService) === 'native' ? 'toggle' : 'compact';
207
+ newVisibilityValue =
208
+ getTitleBarStyle(this.configurationService) === 'native' ? 'toggle' : 'compact';
204
209
  }
205
210
  else {
206
211
  newVisibilityValue = 'classic';
@@ -216,22 +221,17 @@ class LayoutService extends Disposable {
216
221
  getPanelAlignment() {
217
222
  return 'left';
218
223
  }
219
- setPanelAlignment() {
220
- }
221
- toggleZenMode() {
222
- }
224
+ setPanelAlignment() { }
225
+ toggleZenMode() { }
223
226
  isEditorLayoutCentered() {
224
227
  return false;
225
228
  }
226
- centerEditorLayout() {
227
- }
228
- resizePart() {
229
- }
229
+ centerEditorLayout() { }
230
+ resizePart() { }
230
231
  isWindowMaximized() {
231
232
  return false;
232
233
  }
233
- updateWindowMaximizedState() {
234
- }
234
+ updateWindowMaximizedState() { }
235
235
  getVisibleNeighborPart() {
236
236
  return undefined;
237
237
  }
@@ -305,7 +305,7 @@ class LayoutService extends Disposable {
305
305
  if (panelToOpen == null || !this.hasViews(panelToOpen)) {
306
306
  panelToOpen = this.viewDescriptorService
307
307
  .getViewContainersByLocation(location)
308
- .find(viewContainer => this.hasViews(viewContainer.id))?.id;
308
+ .find((viewContainer) => this.hasViews(viewContainer.id))?.id;
309
309
  }
310
310
  if (panelToOpen != null) {
311
311
  void this.paneCompositeService.openPaneComposite(panelToOpen, location, true);
@@ -338,7 +338,9 @@ class LayoutService extends Disposable {
338
338
  isRestored() {
339
339
  return true;
340
340
  }
341
- get mainContainerDimension() { return this._mainContainerDimension; }
341
+ get mainContainerDimension() {
342
+ return this._mainContainerDimension;
343
+ }
342
344
  get activeContainerDimension() {
343
345
  const activeContainer = this.activeContainer;
344
346
  if (activeContainer === this.mainContainer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-layout-service-override",
3
- "version": "9.0.2",
3
+ "version": "10.0.0",
4
4
  "keywords": [],
5
5
  "author": {
6
6
  "name": "CodinGame",
@@ -26,6 +26,6 @@
26
26
  }
27
27
  },
28
28
  "dependencies": {
29
- "vscode": "npm:@codingame/monaco-vscode-api@9.0.2"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@10.0.0"
30
30
  }
31
31
  }