@codingame/monaco-vscode-editor-service-override 5.2.0 → 6.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.
package/editor.js CHANGED
@@ -68,6 +68,7 @@ class EmptyEditorPart {
68
68
  }
69
69
  class EmptyEditorGroupsService {
70
70
  constructor() {
71
+ this.registerContextKeyProvider = unsupported;
71
72
  this.saveWorkingSet = unsupported;
72
73
  this.getWorkingSets = unsupported;
73
74
  this.applyWorkingSet = unsupported;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-editor-service-override",
3
- "version": "5.2.0",
3
+ "version": "6.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@5.2.0"
29
+ "vscode": "npm:@codingame/monaco-vscode-api@6.0.0"
30
30
  }
31
31
  }
package/tools/editor.js CHANGED
@@ -28,6 +28,9 @@ import { unsupported } from '../tools.js';
28
28
  var StandaloneEditorGroup_1;
29
29
  class EmptyEditorGroup {
30
30
  constructor() {
31
+ this.selectedEditors = [];
32
+ this.isSelected = () => false;
33
+ this.setSelection = unsupported;
31
34
  this.isTransient = () => false;
32
35
  this.windowId = mainWindow.vscodeWindowId;
33
36
  this.createEditorActions = unsupported;
@@ -244,6 +247,9 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
244
247
  this.editor = editor;
245
248
  this.scopedContextKeyService = scopedContextKeyService;
246
249
  this.active = false;
250
+ this.selectedEditors = [];
251
+ this.isSelected = () => false;
252
+ this.setSelection = unsupported;
247
253
  this.isTransient = () => false;
248
254
  this.windowId = mainWindow.vscodeWindowId;
249
255
  this.onDidFocus = this.editor.onDidFocusEditorWidget;
@@ -325,7 +331,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
325
331
  });
326
332
  this.pane = new StandaloneEditorPane(editor, editorInput, this);
327
333
  this._onDidModelChange.fire({
328
- kind: 4 ,
334
+ kind: 5 ,
329
335
  editor: editorInput,
330
336
  editorIndex: 0
331
337
  });
@@ -338,7 +344,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
338
344
  const pane = this.pane;
339
345
  this.pane = undefined;
340
346
  this._onDidModelChange.fire({
341
- kind: 5 ,
347
+ kind: 6 ,
342
348
  editorIndex: 0
343
349
  });
344
350
  this._onDidActiveEditorChange.fire({
@@ -552,6 +558,9 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
552
558
  codeEditorService.listCodeEditors().forEach(handleCodeEditor);
553
559
  });
554
560
  }
561
+ registerContextKeyProvider(provider) {
562
+ return this.delegate.registerContextKeyProvider(provider);
563
+ }
555
564
  saveWorkingSet(name) {
556
565
  return this.delegate.saveWorkingSet(name);
557
566
  }