@codingame/monaco-vscode-api 22.1.7 → 22.1.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "22.1.
|
|
3
|
+
"version": "22.1.8",
|
|
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": "22.1.
|
|
19
|
-
"@codingame/monaco-vscode-environment-service-override": "22.1.
|
|
20
|
-
"@codingame/monaco-vscode-extensions-service-override": "22.1.
|
|
21
|
-
"@codingame/monaco-vscode-files-service-override": "22.1.
|
|
22
|
-
"@codingame/monaco-vscode-host-service-override": "22.1.
|
|
23
|
-
"@codingame/monaco-vscode-layout-service-override": "22.1.
|
|
24
|
-
"@codingame/monaco-vscode-quickaccess-service-override": "22.1.
|
|
18
|
+
"@codingame/monaco-vscode-base-service-override": "22.1.8",
|
|
19
|
+
"@codingame/monaco-vscode-environment-service-override": "22.1.8",
|
|
20
|
+
"@codingame/monaco-vscode-extensions-service-override": "22.1.8",
|
|
21
|
+
"@codingame/monaco-vscode-files-service-override": "22.1.8",
|
|
22
|
+
"@codingame/monaco-vscode-host-service-override": "22.1.8",
|
|
23
|
+
"@codingame/monaco-vscode-layout-service-override": "22.1.8",
|
|
24
|
+
"@codingame/monaco-vscode-quickaccess-service-override": "22.1.8",
|
|
25
25
|
"@vscode/iconv-lite-umd": "0.7.0",
|
|
26
26
|
"dompurify": "3.2.7",
|
|
27
27
|
"jschardet": "3.1.4",
|
package/services.js
CHANGED
|
@@ -403,10 +403,10 @@ export { IInlineCompletionsUnificationService } from './vscode/src/vs/workbench/
|
|
|
403
403
|
export { IMcpGalleryManifestService } from './vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js';
|
|
404
404
|
export { IDataChannelService } from './vscode/src/vs/platform/dataChannel/common/dataChannel.service.js';
|
|
405
405
|
|
|
406
|
-
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.105.0-
|
|
407
|
-
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.105.0-
|
|
406
|
+
if (window.monacoVscodeApiBuildId != null && window.monacoVscodeApiBuildId !== "1.105.0-50061496-4b26-4306-bff2-6eb077843981") {
|
|
407
|
+
throw new Error(`Another version of monaco-vscode-api has already been loaded. Trying to load ${"1.105.0-50061496-4b26-4306-bff2-6eb077843981"}, ${window.monacoVscodeApiBuildId} is already loaded`);
|
|
408
408
|
}
|
|
409
|
-
window.monacoVscodeApiBuildId = "1.105.0-
|
|
409
|
+
window.monacoVscodeApiBuildId = "1.105.0-50061496-4b26-4306-bff2-6eb077843981";
|
|
410
410
|
function registerCommands(options) {
|
|
411
411
|
function asMenuId(menu) {
|
|
412
412
|
switch (menu) {
|
|
@@ -4,6 +4,7 @@ import { IConfigurationService } from "../../configuration/common/configuration.
|
|
|
4
4
|
import { ContextKeyExpression, ContextKeyValue, IContext, IContextKey, IContextKeyChangeEvent, IContextKeyServiceTarget, IScopedContextKeyService } from "../common/contextkey.js";
|
|
5
5
|
import { IContextKeyService } from "../common/contextkey.service.js";
|
|
6
6
|
import { ServicesAccessor } from "../../instantiation/common/instantiation.js";
|
|
7
|
+
import { ILayoutService } from "../../layout/browser/layoutService.service.js";
|
|
7
8
|
export declare class Context implements IContext {
|
|
8
9
|
protected _parent: Context | null;
|
|
9
10
|
protected _value: Record<string, any>;
|
|
@@ -46,7 +47,7 @@ export declare class ContextKeyService extends AbstractContextKeyService impleme
|
|
|
46
47
|
private _lastContextId;
|
|
47
48
|
private readonly _contexts;
|
|
48
49
|
private inputFocusedContext;
|
|
49
|
-
constructor(configurationService: IConfigurationService);
|
|
50
|
+
constructor(configurationService: IConfigurationService, layoutService: ILayoutService);
|
|
50
51
|
private updateInputContextKeys;
|
|
51
52
|
getContextValuesContainer(contextId: number): Context;
|
|
52
53
|
createChildContext(parentContextId?: number): number;
|
|
@@ -15,7 +15,8 @@ import { RawContextKey } from '../common/contextkey.js';
|
|
|
15
15
|
import { IContextKeyService } from '../common/contextkey.service.js';
|
|
16
16
|
import { InputFocusedContext } from '../common/contextkeys.js';
|
|
17
17
|
import { mainWindow } from '../../../base/browser/window.js';
|
|
18
|
-
import { onDidRegisterWindow, addDisposableListener, EventType, getActiveElement, isEditableElement, trackFocus,
|
|
18
|
+
import { onDidRegisterWindow, addDisposableListener, EventType, getActiveElement, isEditableElement, trackFocus, getActiveDocument } from '../../../base/browser/dom.js';
|
|
19
|
+
import { ILayoutService } from '../../layout/browser/layoutService.service.js';
|
|
19
20
|
|
|
20
21
|
const KEYBINDING_CONTEXT_ATTR = 'data-keybinding-context';
|
|
21
22
|
class Context {
|
|
@@ -301,7 +302,7 @@ class AbstractContextKeyService extends Disposable {
|
|
|
301
302
|
}
|
|
302
303
|
}
|
|
303
304
|
let ContextKeyService = class ContextKeyService extends AbstractContextKeyService {
|
|
304
|
-
constructor(configurationService) {
|
|
305
|
+
constructor(configurationService, layoutService) {
|
|
305
306
|
super(0);
|
|
306
307
|
this._contexts = ( new Map());
|
|
307
308
|
this._lastContextId = 0;
|
|
@@ -310,7 +311,7 @@ let ContextKeyService = class ContextKeyService extends AbstractContextKeyServic
|
|
|
310
311
|
this._contexts.set(this._myContextId, myContext);
|
|
311
312
|
this._register(Event.runAndSubscribe(onDidRegisterWindow, ({ window, disposables }) => {
|
|
312
313
|
const onFocusDisposables = disposables.add(( new MutableDisposable()));
|
|
313
|
-
disposables.add(addDisposableListener(window, EventType.FOCUS_IN, () => {
|
|
314
|
+
disposables.add(addDisposableListener(layoutService.getContainer(window), EventType.FOCUS_IN, () => {
|
|
314
315
|
onFocusDisposables.value = ( new DisposableStore());
|
|
315
316
|
this.updateInputContextKeys(window.document, onFocusDisposables.value);
|
|
316
317
|
}, true));
|
|
@@ -327,7 +328,7 @@ let ContextKeyService = class ContextKeyService extends AbstractContextKeyServic
|
|
|
327
328
|
const activeElement = getActiveElement(ownerDocument);
|
|
328
329
|
const tracker = disposables.add(trackFocus(activeElement));
|
|
329
330
|
Event.once(tracker.onDidBlur)(() => {
|
|
330
|
-
if (
|
|
331
|
+
if (getActiveDocument() === ownerDocument) {
|
|
331
332
|
this.inputFocusedContext.set(activeElementIsInput());
|
|
332
333
|
}
|
|
333
334
|
tracker.dispose();
|
|
@@ -358,7 +359,8 @@ let ContextKeyService = class ContextKeyService extends AbstractContextKeyServic
|
|
|
358
359
|
}
|
|
359
360
|
};
|
|
360
361
|
ContextKeyService = ( __decorate([
|
|
361
|
-
( __param(0, IConfigurationService))
|
|
362
|
+
( __param(0, IConfigurationService)),
|
|
363
|
+
( __param(1, ILayoutService))
|
|
362
364
|
], ContextKeyService));
|
|
363
365
|
class ScopedContextKeyService extends AbstractContextKeyService {
|
|
364
366
|
constructor(parent, domNode) {
|