@codingame/monaco-vscode-api 21.3.3 → 21.3.4
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/lifecycle.js +2 -4
- package/package.json +8 -8
- package/services.d.ts +3 -2
- package/services.js +5 -4
- package/vscode/src/vs/platform/product/common/product.js +1 -1
package/lifecycle.js
CHANGED
|
@@ -41,9 +41,9 @@ async function startup(instantiationService) {
|
|
|
41
41
|
await instantiationService.invokeFunction(async (accessor) => {
|
|
42
42
|
setHoverDelegateFactory((placement, enableInstantHover) => instantiationService.createInstance(WorkbenchHoverDelegate, placement, { instantHover: enableInstantHover }, {}));
|
|
43
43
|
setBaseLayerHoverDelegate(accessor.get(IHoverService));
|
|
44
|
-
});
|
|
45
|
-
await instantiationService.invokeFunction(async (accessor) => {
|
|
46
44
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
45
|
+
Registry.as(Extensions.Workbench).start(accessor);
|
|
46
|
+
Registry.as(EditorExtensions.EditorFactory).start(accessor);
|
|
47
47
|
await Promise.all(serviceInitializeParticipants.map((participant) => participant(accessor)));
|
|
48
48
|
lifecycleService.phase = LifecyclePhase.Ready;
|
|
49
49
|
});
|
|
@@ -54,8 +54,6 @@ async function startup(instantiationService) {
|
|
|
54
54
|
serviceInitializedEmitter.fire();
|
|
55
55
|
void instantiationService.invokeFunction(async (accessor) => {
|
|
56
56
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
57
|
-
Registry.as(Extensions.Workbench).start(accessor);
|
|
58
|
-
Registry.as(EditorExtensions.EditorFactory).start(accessor);
|
|
59
57
|
onRenderWorkbench((accessor) => {
|
|
60
58
|
accessor.get(IInstantiationService).createInstance(WorkbenchContextKeysHandler);
|
|
61
59
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "21.3.
|
|
3
|
+
"version": "21.3.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
},
|
|
16
16
|
"type": "module",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@codingame/monaco-vscode-base-service-override": "21.3.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "21.3.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "21.3.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "21.3.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "21.3.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "21.3.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "21.3.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "21.3.4",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "21.3.4",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "21.3.4",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "21.3.4",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "21.3.4",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "21.3.4",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "21.3.4",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"dompurify": "3.2.7",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.d.ts
CHANGED
|
@@ -5,12 +5,12 @@ import { type IEditorOverrideServices } from "./vscode/src/vs/editor/standalone/
|
|
|
5
5
|
import { type GetLeadingNonServiceArgs, type ServiceIdentifier, type ServicesAccessor } from "./vscode/src/vs/platform/instantiation/common/instantiation.js";
|
|
6
6
|
import type { IAction } from "./vscode/src/vs/base/common/actions.js";
|
|
7
7
|
import { type IDisposable } from "./vscode/src/vs/base/common/lifecycle.js";
|
|
8
|
-
import type { IWorkbenchConstructionOptions, IWorkspaceProvider } from "./vscode/src/vs/workbench/browser/web.api.js";
|
|
9
8
|
import { type ILazyWorkbenchContributionInstantiation, type IOnEditorWorkbenchContributionInstantiation, type WorkbenchContributionInstantiation, WorkbenchPhase } from "./vscode/src/vs/workbench/common/contributions.js";
|
|
10
9
|
import { IProductService } from "./vscode/src/vs/platform/product/common/productService.service.js";
|
|
11
10
|
import type { IConfigurationChangeEvent } from "./vscode/src/vs/platform/configuration/common/configuration.js";
|
|
12
11
|
import type { IColorTheme } from "./vscode/src/vs/platform/theme/common/themeService.js";
|
|
13
12
|
import { type EnvironmentOverride } from "./workbench.js";
|
|
13
|
+
import { type IWorkbenchConstructionOptions } from "./vscode/src/vs/workbench/browser/web.api.js";
|
|
14
14
|
declare global {
|
|
15
15
|
interface Window {
|
|
16
16
|
monacoVscodeApiBuildId?: string;
|
|
@@ -114,7 +114,8 @@ export { ISecretStorageService } from "./vscode/src/vs/platform/secrets/common/s
|
|
|
114
114
|
export type { ISecretStorageProvider } from "@codingame/monaco-vscode-secret-storage-service-override/vscode/vs/platform/secrets/common/secrets";
|
|
115
115
|
export type { IProductConfiguration } from "./vscode/src/vs/base/common/product.js";
|
|
116
116
|
export { StorageScope, StorageTarget, Severity, IProductService, WorkbenchPhase };
|
|
117
|
-
export type { IAction, IConfigurationChangeEvent, ITextModelContentProvider, IColorTheme, IWorkbenchConstructionOptions,
|
|
117
|
+
export type { IAction, IConfigurationChangeEvent, ITextModelContentProvider, IColorTheme, IWorkbenchConstructionOptions, IEditorOverrideServices, WorkbenchContributionInstantiation, ILazyWorkbenchContributionInstantiation, IOnEditorWorkbenchContributionInstantiation, ServicesAccessor };
|
|
118
|
+
export * from "./vscode/src/vs/workbench/browser/web.api.js";
|
|
118
119
|
export { ConfigurationTarget } from "./vscode/src/vs/platform/configuration/common/configuration.js";
|
|
119
120
|
export { IRemoteExplorerService } from "./vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.js";
|
|
120
121
|
export { ITunnelService } from "./vscode/src/vs/platform/tunnel/common/tunnel.service.js";
|
package/services.js
CHANGED
|
@@ -115,6 +115,7 @@ import { CommandsRegistry } from './vscode/src/vs/platform/commands/common/comma
|
|
|
115
115
|
import { asArray } from './vscode/src/vs/base/common/arrays.js';
|
|
116
116
|
import { MenuId, MenuRegistry } from './vscode/src/vs/platform/actions/common/actions.js';
|
|
117
117
|
import { Menu } from './vscode/src/vs/workbench/browser/web.api.js';
|
|
118
|
+
export { ColorScheme } from './vscode/src/vs/workbench/browser/web.api.js';
|
|
118
119
|
export { SyncDescriptor } from './vscode/src/vs/platform/instantiation/common/descriptors.js';
|
|
119
120
|
export { ICommandService } from './vscode/src/vs/platform/commands/common/commands.service.js';
|
|
120
121
|
export { INotificationService } from './vscode/src/vs/platform/notification/common/notification.service.js';
|
|
@@ -401,10 +402,10 @@ export { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/
|
|
|
401
402
|
export { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
|
|
402
403
|
export { IDataChannelService } from './vscode/src/vs/platform/dataChannel/common/dataChannel.service.js';
|
|
403
404
|
|
|
404
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.104.2-
|
|
405
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.104.2-
|
|
405
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.104.2-40e5b938-3f79-4e2a-abd8-f26d12aed397") {
|
|
406
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.104.2-40e5b938-3f79-4e2a-abd8-f26d12aed397"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
406
407
|
}
|
|
407
|
-
window.monacoVscodeApiBuildId = "1.104.2-
|
|
408
|
+
window.monacoVscodeApiBuildId = "1.104.2-40e5b938-3f79-4e2a-abd8-f26d12aed397";
|
|
408
409
|
function registerCommands(options) {
|
|
409
410
|
function asMenuId(menu) {
|
|
410
411
|
switch (menu) {
|
|
@@ -483,4 +484,4 @@ const registerWorkbenchContribution = (id, contribution, instantiation) => {
|
|
|
483
484
|
registerWorkbenchContribution2(id, Contribution, instantiation);
|
|
484
485
|
};
|
|
485
486
|
|
|
486
|
-
export { IInstantiationService, IProductService, StandaloneServices, createInstance, createInstanceSync, getService, initialize, registerWorkbenchContribution, withReadyServices };
|
|
487
|
+
export { IInstantiationService, IProductService, Menu, StandaloneServices, createInstance, createInstanceSync, getService, initialize, registerWorkbenchContribution, withReadyServices };
|