@codingame/monaco-vscode-api 17.1.3 → 17.2.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/lifecycle.js +3 -1
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/workbench/browser/contextkeys.js +2 -1
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +2 -1
package/lifecycle.js
CHANGED
|
@@ -56,7 +56,9 @@ async function startup(instantiationService) {
|
|
|
56
56
|
const lifecycleService = accessor.get(ILifecycleService);
|
|
57
57
|
Registry.as(Extensions.Workbench).start(accessor);
|
|
58
58
|
Registry.as(EditorExtensions.EditorFactory).start(accessor);
|
|
59
|
-
|
|
59
|
+
onRenderWorkbench((accessor) => {
|
|
60
|
+
accessor.get(IInstantiationService).createInstance(WorkbenchContextKeysHandler);
|
|
61
|
+
});
|
|
60
62
|
layoutEmitter.fire(accessor);
|
|
61
63
|
renderWorkbenchEmitter.fire(accessor);
|
|
62
64
|
await Promise.race([accessor.get(IWorkbenchLayoutService).whenRestored, timeout(2000)]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.2.0",
|
|
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": "17.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "17.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "17.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "17.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "17.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "17.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "17.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "17.2.0",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "17.2.0",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "17.2.0",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "17.2.0",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "17.2.0",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "17.2.0",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "17.2.0",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"dompurify": "3.2.6",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.js
CHANGED
|
@@ -182,10 +182,10 @@ export { IKeybindingService } from './vscode/src/vs/platform/keybinding/common/k
|
|
|
182
182
|
export { ISecretStorageService } from './vscode/src/vs/platform/secrets/common/secrets.service.js';
|
|
183
183
|
export { ConfigurationTarget } from './vscode/src/vs/platform/configuration/common/configuration.js';
|
|
184
184
|
|
|
185
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.100.3-
|
|
186
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.100.3-
|
|
185
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.100.3-a78de800-23ef-435a-abe3-81d48de3ca86") {
|
|
186
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.100.3-a78de800-23ef-435a-abe3-81d48de3ca86"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
187
187
|
}
|
|
188
|
-
window.monacoVscodeApiBuildId = "1.100.3-
|
|
188
|
+
window.monacoVscodeApiBuildId = "1.100.3-a78de800-23ef-435a-abe3-81d48de3ca86";
|
|
189
189
|
async function initialize(overrides, container = document.body, configuration = {}, env) {
|
|
190
190
|
checkServicesNotInitialized();
|
|
191
191
|
injectCss(container);
|
|
@@ -5,7 +5,7 @@ import { Disposable } from '../../base/common/lifecycle.js';
|
|
|
5
5
|
import { setConstant } from '../../platform/contextkey/common/contextkey.js';
|
|
6
6
|
import { IContextKeyService } from '../../platform/contextkey/common/contextkey.service.js';
|
|
7
7
|
import { IsMacContext, IsLinuxContext, IsWindowsContext, IsWebContext, IsMacNativeContext, IsIOSContext, IsMobileContext, IsDevelopmentContext, ProductQualityContext, InputFocusedContext } from '../../platform/contextkey/common/contextkeys.js';
|
|
8
|
-
import { RemoteNameContext, VirtualWorkspaceContext, TemporaryWorkspaceContext, HasWebFileSystemAccess, EmbedderIdentifierContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, EditorsVisibleContext, DirtyWorkingCopiesContext, WorkbenchStateContext, WorkspaceFolderCountContext, OpenFolderWorkspaceSupportContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, SplitEditorsVertically, IsMainWindowFullscreenContext, IsAuxiliaryWindowFocusedContext, InEditorZenModeContext, IsMainEditorCenteredLayoutContext, MainEditorAreaVisibleContext, EditorTabsVisibleContext, SideBarVisibleContext, TitleBarVisibleContext, TitleBarStyleContext, PanelPositionContext, PanelVisibleContext, PanelMaximizedContext, PanelAlignmentContext, AuxiliaryBarVisibleContext } from '../common/contextkeys.js';
|
|
8
|
+
import { RemoteNameContext, VirtualWorkspaceContext, TemporaryWorkspaceContext, HasWebFileSystemAccess, EmbedderIdentifierContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, MultipleEditorGroupsContext, EditorsVisibleContext, DirtyWorkingCopiesContext, WorkbenchStateContext, WorkspaceFolderCountContext, OpenFolderWorkspaceSupportContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, SplitEditorsVertically, IsMainWindowFullscreenContext, IsAuxiliaryWindowFocusedContext, InEditorZenModeContext, IsMainEditorCenteredLayoutContext, MainEditorAreaVisibleContext, EditorTabsVisibleContext, SideBarVisibleContext, TitleBarVisibleContext, TitleBarStyleContext, PanelPositionContext, PanelVisibleContext, PanelMaximizedContext, PanelAlignmentContext, AuxiliaryBarVisibleContext, IsSandboxWorkspaceContext } from '../common/contextkeys.js';
|
|
9
9
|
import { onDidRegisterWindow, addDisposableListener, EventType, isEditableElement, trackFocus, getActiveWindow } from '../../base/browser/dom.js';
|
|
10
10
|
import { preferredSideBySideGroupDirection, GroupDirection } from '../services/editor/common/editorGroupsService.js';
|
|
11
11
|
import { IEditorGroupsService } from '../services/editor/common/editorGroupsService.service.js';
|
|
@@ -98,6 +98,7 @@ let WorkbenchContextKeysHandler = class WorkbenchContextKeysHandler extends Disp
|
|
|
98
98
|
this.panelAlignmentContext.set(this.layoutService.getPanelAlignment());
|
|
99
99
|
this.auxiliaryBarVisibleContext = AuxiliaryBarVisibleContext.bindTo(this.contextKeyService);
|
|
100
100
|
this.auxiliaryBarVisibleContext.set(this.layoutService.isVisible(Parts.AUXILIARYBAR_PART));
|
|
101
|
+
IsSandboxWorkspaceContext.bindTo(this.contextKeyService);
|
|
101
102
|
this.registerListeners();
|
|
102
103
|
}
|
|
103
104
|
registerListeners() {
|
|
@@ -20,6 +20,7 @@ export declare const IsAuxiliaryWindowFocusedContext: RawContextKey<boolean>;
|
|
|
20
20
|
export declare const IsWindowAlwaysOnTopContext: RawContextKey<boolean>;
|
|
21
21
|
export declare const HasWebFileSystemAccess: RawContextKey<boolean>;
|
|
22
22
|
export declare const EmbedderIdentifierContext: RawContextKey<string | undefined>;
|
|
23
|
+
export declare const IsSandboxWorkspaceContext: RawContextKey<boolean>;
|
|
23
24
|
export declare const ActiveEditorDirtyContext: RawContextKey<boolean>;
|
|
24
25
|
export declare const ActiveEditorPinnedContext: RawContextKey<boolean>;
|
|
25
26
|
export declare const ActiveEditorFirstInGroupContext: RawContextKey<boolean>;
|
|
@@ -40,6 +40,7 @@ const EmbedderIdentifierContext = ( new RawContextKey('embedderIdentifier', unde
|
|
|
40
40
|
3789,
|
|
41
41
|
'The identifier of the embedder according to the product service, if one is defined'
|
|
42
42
|
))));
|
|
43
|
+
const IsSandboxWorkspaceContext = ( new RawContextKey('isSandboxWorkspace', false, true));
|
|
43
44
|
const ActiveEditorDirtyContext = ( new RawContextKey('activeEditorIsDirty', false, ( localize(3790, "Whether the active editor has unsaved changes"))));
|
|
44
45
|
const ActiveEditorPinnedContext = ( new RawContextKey('activeEditorIsNotPreview', false, ( localize(3791, "Whether the active editor is not in preview mode"))));
|
|
45
46
|
const ActiveEditorFirstInGroupContext = ( new RawContextKey('activeEditorIsFirstInGroup', false, ( localize(3792, "Whether the active editor is the first one in its group"))));
|
|
@@ -244,4 +245,4 @@ function applyAvailableEditorIds(contextKey, editor, editorResolverService) {
|
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
247
|
|
|
247
|
-
export { ActiveAuxiliaryContext, ActiveCompareEditorCanSwapContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorPartMaximizedEditorGroupContext, EditorPartMultipleEditorGroupsContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsAuxiliaryEditorPartContext, IsAuxiliaryTitleBarContext, IsAuxiliaryWindowFocusedContext, IsCompactTitleBarContext, IsMainEditorCenteredLayoutContext, IsMainWindowFullscreenContext, MainEditorAreaVisibleContext, MultipleEditorGroupsContext, MultipleEditorsSelectedInGroupContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SelectedEditorsInGroupFileOrUntitledResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, TitleBarStyleContext, TitleBarVisibleContext, TwoEditorsSelectedInGroupContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getVisbileViewContextKey };
|
|
248
|
+
export { ActiveAuxiliaryContext, ActiveCompareEditorCanSwapContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorCanRevertContext, ActiveEditorCanSplitInGroupContext, ActiveEditorCanToggleReadonlyContext, ActiveEditorContext, ActiveEditorDirtyContext, ActiveEditorFirstInGroupContext, ActiveEditorGroupEmptyContext, ActiveEditorGroupIndexContext, ActiveEditorGroupLastContext, ActiveEditorGroupLockedContext, ActiveEditorLastInGroupContext, ActiveEditorPinnedContext, ActiveEditorReadonlyContext, ActiveEditorStickyContext, ActivePanelContext, ActiveViewletContext, AuxiliaryBarFocusContext, AuxiliaryBarVisibleContext, BannerFocused, DirtyWorkingCopiesContext, EditorGroupEditorsCountContext, EditorPartMaximizedEditorGroupContext, EditorPartMultipleEditorGroupsContext, EditorTabsVisibleContext, EditorsVisibleContext, EmbedderIdentifierContext, EmptyWorkspaceSupportContext, EnterMultiRootWorkspaceSupportContext, FocusedViewContext, HasWebFileSystemAccess, InEditorZenModeContext, IsAuxiliaryEditorPartContext, IsAuxiliaryTitleBarContext, IsAuxiliaryWindowFocusedContext, IsCompactTitleBarContext, IsMainEditorCenteredLayoutContext, IsMainWindowFullscreenContext, IsSandboxWorkspaceContext, MainEditorAreaVisibleContext, MultipleEditorGroupsContext, MultipleEditorsSelectedInGroupContext, NotificationFocusedContext, NotificationsCenterVisibleContext, NotificationsToastsVisibleContext, OpenFolderWorkspaceSupportContext, PanelAlignmentContext, PanelFocusContext, PanelMaximizedContext, PanelPositionContext, PanelVisibleContext, RemoteNameContext, ResourceContextKey, SelectedEditorsInGroupFileOrUntitledResourceContextKey, SideBarVisibleContext, SideBySideEditorActiveContext, SidebarFocusContext, SplitEditorsVertically, StatusBarFocused, TemporaryWorkspaceContext, TextCompareEditorActiveContext, TextCompareEditorVisibleContext, TitleBarStyleContext, TitleBarVisibleContext, TwoEditorsSelectedInGroupContext, VirtualWorkspaceContext, WorkbenchStateContext, WorkspaceFolderCountContext, applyAvailableEditorIds, getVisbileViewContextKey };
|