@codingame/monaco-vscode-api 1.83.6 → 1.83.8
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/assets.js +3 -14
- package/lifecycle.js +3 -4
- package/monaco-editor-treemending.patch +26304 -3867
- package/monaco.d.ts +7 -2
- package/monaco.js +15 -1
- package/package.json +8 -1
- package/service-override/environment.js +6 -6
- package/service-override/files.js +29 -5
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +6 -7
- package/service-override/output.js +8 -6
- package/service-override/tools/editor.d.ts +1 -1
- package/services.d.ts +3 -2
- package/services.js +4 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +6 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -2
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +56 -2
- package/vscode/src/vs/workbench/common/editor.d.ts +17 -1
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +53 -2
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +7 -1
- package/workbench.js +38 -0
package/assets.js
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { FileAccess } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
2
2
|
function registerAssets(assets) {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
...assets
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
function toUrl(name) {
|
|
9
|
-
let url = assetUrls[name];
|
|
10
|
-
if (typeof url === 'function') {
|
|
11
|
-
url = url();
|
|
3
|
+
for (const [moduleId, url] of Object.entries(assets)) {
|
|
4
|
+
FileAccess.registerAppResourcePathUrl(moduleId, url);
|
|
12
5
|
}
|
|
13
|
-
return ( new URL(url ?? '', globalThis.location?.href ?? import.meta.url).toString());
|
|
14
6
|
}
|
|
15
|
-
globalThis.monacoRequire = {
|
|
16
|
-
toUrl
|
|
17
|
-
};
|
|
18
7
|
export { registerAssets };
|
package/lifecycle.js
CHANGED
|
@@ -3,6 +3,7 @@ import { Extensions } from './vscode/src/vs/workbench/common/contributions.js';
|
|
|
3
3
|
import { ILifecycleService } from './vscode/src/vs/workbench/services/lifecycle/common/lifecycle.js';
|
|
4
4
|
import { Barrier, RunOnceScheduler, runWhenIdle } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
5
5
|
import { Emitter } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
6
|
+
import { EditorExtensions } from './vscode/src/vs/workbench/common/editor.js';
|
|
6
7
|
const renderWorkbenchEmitter = new Emitter();
|
|
7
8
|
const onRenderWorkbench = renderWorkbenchEmitter.event;
|
|
8
9
|
const serviceInitializedBarrier = new Barrier();
|
|
@@ -16,9 +17,6 @@ function registerServiceInitializePreParticipant(participant) {
|
|
|
16
17
|
function registerServiceInitializeParticipant(participant) {
|
|
17
18
|
serviceInitializeParticipants.push(participant);
|
|
18
19
|
}
|
|
19
|
-
function registerServiceInitializePostParticipant(participant) {
|
|
20
|
-
serviceInitializePostParticipants.push(participant);
|
|
21
|
-
}
|
|
22
20
|
async function startup(instantiationService) {
|
|
23
21
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
24
22
|
await Promise.all(( serviceInitializePreParticipants.map(participant => participant(accessor))));
|
|
@@ -36,6 +34,7 @@ async function startup(instantiationService) {
|
|
|
36
34
|
instantiationService.invokeFunction(accessor => {
|
|
37
35
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
38
36
|
( Registry.as(Extensions.Workbench)).start(accessor);
|
|
37
|
+
( Registry.as(EditorExtensions.EditorFactory)).start(accessor);
|
|
39
38
|
renderWorkbenchEmitter.fire(accessor);
|
|
40
39
|
lifecycleService.phase = 3 ;
|
|
41
40
|
const eventuallyPhaseScheduler = new RunOnceScheduler(() => {
|
|
@@ -46,4 +45,4 @@ async function startup(instantiationService) {
|
|
|
46
45
|
eventuallyPhaseScheduler.schedule();
|
|
47
46
|
});
|
|
48
47
|
}
|
|
49
|
-
export { onRenderWorkbench, registerServiceInitializeParticipant,
|
|
48
|
+
export { onRenderWorkbench, registerServiceInitializeParticipant, registerServiceInitializePreParticipant, serviceInitializedBarrier, serviceInitializedEmitter, startup };
|