@codingame/monaco-vscode-api 1.81.7-next.0 → 1.81.7

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.
@@ -299,16 +299,16 @@ class EmptyEditorGroup {
299
299
  this.isLocked = false;
300
300
  this.stickyCount = 0;
301
301
  this.editors = [];
302
- this.getEditors = unsupported;
303
- this.findEditors = unsupported;
304
- this.getEditorByIndex = unsupported;
302
+ this.getEditors = () => [];
303
+ this.findEditors = () => [];
304
+ this.getEditorByIndex = () => undefined;
305
305
  this.getIndexOfEditor = unsupported;
306
306
  this.openEditor = unsupported;
307
307
  this.openEditors = unsupported;
308
- this.isPinned = unsupported;
309
- this.isSticky = unsupported;
310
- this.isActive = unsupported;
311
- this.contains = unsupported;
308
+ this.isPinned = () => false;
309
+ this.isSticky = () => false;
310
+ this.isActive = () => false;
311
+ this.contains = () => false;
312
312
  this.moveEditor = unsupported;
313
313
  this.moveEditors = unsupported;
314
314
  this.copyEditor = unsupported;
@@ -321,8 +321,8 @@ class EmptyEditorGroup {
321
321
  this.stickEditor = unsupported;
322
322
  this.unstickEditor = unsupported;
323
323
  this.lock = unsupported;
324
- this.isFirst = () => true;
325
- this.isLast = () => true;
324
+ this.isFirst = unsupported;
325
+ this.isLast = unsupported;
326
326
  }
327
327
  get titleHeight() {
328
328
  return unsupported();
@@ -202,7 +202,9 @@ let StandaloneEditorGroup = class StandaloneEditorGroup extends Disposable {
202
202
  this.isPinned = () => false;
203
203
  this.isSticky = () => false;
204
204
  this.isActive = () => this.editor.hasWidgetFocus();
205
- this.contains = unsupported;
205
+ this.contains = (candidate) => {
206
+ return this.pane != null && this.pane.input === candidate;
207
+ };
206
208
  this.moveEditor = unsupported;
207
209
  this.moveEditors = unsupported;
208
210
  this.copyEditor = unsupported;