@codingame/monaco-vscode-editor-service-override 2.0.3 → 2.1.0-update-vscode-1.86.1
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 +4 -0
- package/package.json +2 -2
- package/tools/editor.js +14 -0
package/editor.js
CHANGED
|
@@ -10,6 +10,7 @@ import { IEditorGroupsService } from 'vscode/vscode/vs/workbench/services/editor
|
|
|
10
10
|
import { IInstantiationService } from 'vscode/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
11
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
12
12
|
import { DEFAULT_EDITOR_PART_OPTIONS } from 'vscode/vscode/vs/workbench/browser/parts/editor/editor';
|
|
13
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
13
14
|
import { MonacoEditorService, MonacoDelegateEditorGroupsService } from './tools/editor.js';
|
|
14
15
|
import { unsupported } from './tools.js';
|
|
15
16
|
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
|
|
@@ -17,6 +18,7 @@ import 'vscode/vscode/vs/workbench/contrib/files/browser/files.fileEditorFactory
|
|
|
17
18
|
|
|
18
19
|
class EmptyEditorGroup {
|
|
19
20
|
constructor() {
|
|
21
|
+
this.windowId = mainWindow.vscodeWindowId;
|
|
20
22
|
this.createEditorActions = unsupported;
|
|
21
23
|
this.onDidFocus = Event.None;
|
|
22
24
|
this.onDidOpenEditorFail = Event.None;
|
|
@@ -94,6 +96,8 @@ class EmptyEditorGroup {
|
|
|
94
96
|
const fakeActiveGroup = new EmptyEditorGroup();
|
|
95
97
|
class EmptyEditorPart {
|
|
96
98
|
constructor() {
|
|
99
|
+
this.hasMaximizedGroup = () => false;
|
|
100
|
+
this.windowId = mainWindow.vscodeWindowId;
|
|
97
101
|
this.onDidLayout = Event.None;
|
|
98
102
|
this.onDidScroll = Event.None;
|
|
99
103
|
this.isReady = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-editor-service-override",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.1.0-update-vscode-1.86.1",
|
|
4
4
|
"keywords": [],
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "CodinGame",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"module": "index.js",
|
|
19
19
|
"types": "index.d.ts",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"vscode": "npm:@codingame/monaco-vscode-api@2.0.
|
|
21
|
+
"vscode": "npm:@codingame/monaco-vscode-api@2.1.0-update-vscode-1.86.1",
|
|
22
22
|
"vscode-marked": "npm:marked@=3.0.2"
|
|
23
23
|
}
|
|
24
24
|
}
|
package/tools/editor.js
CHANGED
|
@@ -22,6 +22,7 @@ import { IHostService } from 'vscode/vscode/vs/workbench/services/host/browser/h
|
|
|
22
22
|
import { Event, Emitter } from 'vscode/vscode/vs/base/common/event';
|
|
23
23
|
import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
24
24
|
import { IContextKeyService } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
25
|
+
import { mainWindow } from 'vscode/vscode/vs/base/browser/window';
|
|
25
26
|
import { unsupported } from '../tools.js';
|
|
26
27
|
|
|
27
28
|
var StandaloneEditorGroup_1;
|
|
@@ -164,6 +165,7 @@ let StandaloneEditorGroup = StandaloneEditorGroup_1 = class StandaloneEditorGrou
|
|
|
164
165
|
this.editor = editor;
|
|
165
166
|
this.scopedContextKeyService = scopedContextKeyService;
|
|
166
167
|
this.active = false;
|
|
168
|
+
this.windowId = mainWindow.vscodeWindowId;
|
|
167
169
|
this.onDidFocus = this.editor.onDidFocusEditorWidget;
|
|
168
170
|
this.onDidOpenEditorFail = Event.None;
|
|
169
171
|
this.whenRestored = Promise.resolve();
|
|
@@ -434,6 +436,18 @@ let MonacoDelegateEditorGroupsService = class MonacoDelegateEditorGroupsService
|
|
|
434
436
|
codeEditorService.listCodeEditors().forEach(handleCodeEditor);
|
|
435
437
|
});
|
|
436
438
|
}
|
|
439
|
+
get isReady() {
|
|
440
|
+
return this.delegate.isReady;
|
|
441
|
+
}
|
|
442
|
+
get whenReady() {
|
|
443
|
+
return this.delegate.whenReady;
|
|
444
|
+
}
|
|
445
|
+
get whenRestored() {
|
|
446
|
+
return this.delegate.whenRestored;
|
|
447
|
+
}
|
|
448
|
+
get hasRestorableState() {
|
|
449
|
+
return this.delegate.hasRestorableState;
|
|
450
|
+
}
|
|
437
451
|
get parts() { return this.delegate.parts; }
|
|
438
452
|
createAuxiliaryEditorPart(options) {
|
|
439
453
|
return this.delegate.createAuxiliaryEditorPart(options);
|