@codingame/monaco-vscode-api 1.69.21 → 1.69.23
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/README.md +14 -2
- package/dist/dialogs.js +899 -5
- package/dist/keybindings.js +1 -1
- package/dist/layout.js +8 -898
- package/dist/missing-services.js +3 -4
- package/dist/notifications.js +6 -7
- package/dist/services2.js +1 -1
- package/dist/tools.js +2 -2
- package/dist/workspace.js +5 -5
- package/package.json +12 -11
package/dist/missing-services.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { E as Emitter, _ as __decorate, a as __param } from './workspace.js';
|
|
2
|
-
import
|
|
2
|
+
import './polyfill.js';
|
|
3
|
+
import { b as IEditorService, f as IPaneCompositePartService, k as IUriIdentityService, j as ITextFileService, c as IFileService, I as IEditorGroupsService, l as IWorkbenchEnvironmentService, m as IWorkingCopyFileService, g as IPathService, S as Services, h as IProductService, e as ILanguageStatusService, d as IHostService, r as IUserDataProfilesService, i as ISnippetsService, s as refineServiceDecorator } from './services2.js';
|
|
3
4
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
4
5
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
5
6
|
import { USLayoutResolvedKeybinding } from 'monaco-editor/esm/vs/platform/keybinding/common/usLayoutResolvedKeybinding.js';
|
|
@@ -7,8 +8,6 @@ import { SimpleKeybinding } from 'monaco-editor/esm/vs/base/common/keybindings.j
|
|
|
7
8
|
import { IEnvironmentService } from 'monaco-editor/esm/vs/platform/environment/common/environment.js';
|
|
8
9
|
import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
9
10
|
import { addMatchMediaChangeListener } from 'monaco-editor/esm/vs/base/browser/browser.js';
|
|
10
|
-
import { ContextKeyExpr, ContextKeyDefinedExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
11
|
-
import { ProductQualityContext } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js';
|
|
12
11
|
import { Promises } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
13
12
|
import { registerSingleton } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
14
13
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
@@ -22,6 +21,7 @@ import { compare } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
|
22
21
|
import { trackFocus } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
23
22
|
import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
|
|
24
23
|
import { OS } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
24
|
+
import { IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
25
25
|
const IPolicyService = ( (createDecorator('policy')));
|
|
26
26
|
class NullPolicyService {
|
|
27
27
|
constructor() {
|
|
@@ -145,7 +145,6 @@ class BrowserHostColorSchemeService extends Disposable {
|
|
|
145
145
|
const IPreferencesService = ( (createDecorator('preferencesService')));
|
|
146
146
|
const ITextMateService = ( (createDecorator('textMateService')));
|
|
147
147
|
const IUserDataProfileService = ( (createDecorator('IUserDataProfileService')));
|
|
148
|
-
ContextKeyExpr.and(ProductQualityContext.notEqualsTo('stable'), ContextKeyDefinedExpr.create(`config.${PROFILES_ENABLEMENT_CONFIG}`));
|
|
149
148
|
let UserDataProfileService = class UserDataProfileService extends Disposable {
|
|
150
149
|
constructor(currentProfile, userDataProfilesService) {
|
|
151
150
|
super();
|
package/dist/notifications.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './polyfill.js';
|
|
2
2
|
import { I as ILifecycleService } from './missing-services.js';
|
|
3
3
|
import { _ as __decorate, E as Emitter, N as NotificationsFilter, a as __param, b as NeverShowAgainScope } from './workspace.js';
|
|
4
|
-
import { n, B as ButtonBar, a as attachButtonStyler, g as getServiceOverride$1, b as attachProgressBarStyler
|
|
4
|
+
import { n, B as ButtonBar, a as attachButtonStyler, g as getServiceOverride$1, b as attachProgressBarStyler } from './layout.js';
|
|
5
5
|
import { focusBorder, registerColor, textLinkForeground, editorErrorForeground, editorWarningForeground, editorInfoForeground, widgetShadow, contrastBorder, editorWidgetBackground, lighten, darken, editorWidgetForeground } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
6
6
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
7
7
|
import { Disposable, toDisposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
@@ -916,13 +916,13 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
916
916
|
KeybindingsRegistry.registerKeybindingRule({
|
|
917
917
|
id: HIDE_NOTIFICATION_TOAST,
|
|
918
918
|
weight: 200 + 100,
|
|
919
|
-
when: ContextKeyExpr.and(NotificationsToastsVisibleContext, NotificationFocusedContext),
|
|
919
|
+
when: ( (ContextKeyExpr.and(NotificationsToastsVisibleContext, NotificationFocusedContext))),
|
|
920
920
|
primary: 9
|
|
921
921
|
});
|
|
922
922
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
923
923
|
id: FOCUS_NEXT_NOTIFICATION_TOAST,
|
|
924
924
|
weight: 200 ,
|
|
925
|
-
when: ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext),
|
|
925
|
+
when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
|
|
926
926
|
primary: 18 ,
|
|
927
927
|
handler: (accessor) => {
|
|
928
928
|
toasts.focusNext();
|
|
@@ -931,7 +931,7 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
931
931
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
932
932
|
id: FOCUS_PREVIOUS_NOTIFICATION_TOAST,
|
|
933
933
|
weight: 200 ,
|
|
934
|
-
when: ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext),
|
|
934
|
+
when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
|
|
935
935
|
primary: 16 ,
|
|
936
936
|
handler: (accessor) => {
|
|
937
937
|
toasts.focusPrevious();
|
|
@@ -940,7 +940,7 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
940
940
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
941
941
|
id: FOCUS_FIRST_NOTIFICATION_TOAST,
|
|
942
942
|
weight: 200 ,
|
|
943
|
-
when: ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext),
|
|
943
|
+
when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
|
|
944
944
|
primary: 11 ,
|
|
945
945
|
secondary: [14 ],
|
|
946
946
|
handler: (accessor) => {
|
|
@@ -950,7 +950,7 @@ function registerNotificationCommands(center, toasts, model) {
|
|
|
950
950
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
951
951
|
id: FOCUS_LAST_NOTIFICATION_TOAST,
|
|
952
952
|
weight: 200 ,
|
|
953
|
-
when: ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext),
|
|
953
|
+
when: ( (ContextKeyExpr.and(NotificationFocusedContext, NotificationsToastsVisibleContext))),
|
|
954
954
|
primary: 12 ,
|
|
955
955
|
secondary: [13 ],
|
|
956
956
|
handler: (accessor) => {
|
|
@@ -2567,7 +2567,6 @@ function initialize(instantiationService) {
|
|
|
2567
2567
|
instantiationService.createInstance(NotificationsTelemetry);
|
|
2568
2568
|
registerNotificationCommands(notificationsCenter, notificationsToasts, model);
|
|
2569
2569
|
notificationsToasts.layout(getClientArea(container));
|
|
2570
|
-
instantiationService.createInstance(DialogHandlerContribution);
|
|
2571
2570
|
}
|
|
2572
2571
|
function getServiceOverride(container) {
|
|
2573
2572
|
onServicesInitialized(initialize);
|
package/dist/services2.js
CHANGED
|
@@ -866,4 +866,4 @@ var Services;
|
|
|
866
866
|
}
|
|
867
867
|
Services.install = install;
|
|
868
868
|
})(Services || (Services = {})));
|
|
869
|
-
export { ACTIVE_GROUP as A, toFileSystemProviderErrorCode as B, ensureFileSystemProviderError as C, etag as D, FileOperationEvent as E, FileType as F, toFileOperationResult as G, ETAG_DISABLED as H, IEditorGroupsService as I, hasFileAtomicReadCapability as J, hasFileFolderCopyCapability as K, hasFileCloneCapability as L, createFileSystemProviderError as M, NotModifiedSinceFileOperationError as N, FILES_ASSOCIATIONS_CONFIG as O, markAsFileSystemProviderError as P, productSchemaId as Q,
|
|
869
|
+
export { ACTIVE_GROUP as A, toFileSystemProviderErrorCode as B, ensureFileSystemProviderError as C, etag as D, FileOperationEvent as E, FileType as F, toFileOperationResult as G, ETAG_DISABLED as H, IEditorGroupsService as I, hasFileAtomicReadCapability as J, hasFileFolderCopyCapability as K, hasFileCloneCapability as L, createFileSystemProviderError as M, NotModifiedSinceFileOperationError as N, FILES_ASSOCIATIONS_CONFIG as O, markAsFileSystemProviderError as P, productSchemaId as Q, Services as S, FilePermission as a, IEditorService as b, IFileService as c, IHostService as d, ILanguageStatusService as e, IPaneCompositePartService as f, IPathService as g, IProductService as h, ISnippetsService as i, ITextFileService as j, IUriIdentityService as k, IWorkbenchEnvironmentService as l, IWorkingCopyFileService as m, StorageScope as n, StorageTarget as o, SIDE_GROUP as p, isPreferredGroup as q, IUserDataProfilesService as r, refineServiceDecorator as s, FileSystemProviderError as t, FileSystemProviderErrorCode as u, FileChangesEvent as v, FileOperationError as w, hasOpenReadWriteCloseCapability as x, hasReadWriteCapability as y, hasFileReadStreamCapability as z };
|
package/dist/tools.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Extensions } from 'monaco-editor/esm/vs/platform/jsonschemas/common/jso
|
|
|
5
5
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
|
6
6
|
import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
7
7
|
import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
|
|
8
|
-
import {
|
|
8
|
+
import { E as Emitter } from './workspace.js';
|
|
9
9
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
10
10
|
const EXTENSION_CATEGORIES = [
|
|
11
11
|
'Azure',
|
|
@@ -835,7 +835,7 @@ function consoleExtensionMessageHandler(msg) {
|
|
|
835
835
|
function getExtensionPoint(extensionPoint) {
|
|
836
836
|
return ExtensionsRegistry.getExtensionPoints().find(ep => ep.name === extensionPoint);
|
|
837
837
|
}
|
|
838
|
-
const emitter = new
|
|
838
|
+
const emitter = new Emitter();
|
|
839
839
|
const onServicesInitialized = emitter.event;
|
|
840
840
|
let initialized = false;
|
|
841
841
|
const original = StandaloneServices.initialize;
|
package/dist/workspace.js
CHANGED
|
@@ -190,7 +190,7 @@ class ContextKeyDefinedExpr {
|
|
|
190
190
|
}
|
|
191
191
|
negate() {
|
|
192
192
|
if (!this.negated) {
|
|
193
|
-
this.negated = ContextKeyNotExpr.create(this.key, this);
|
|
193
|
+
this.negated = ( ContextKeyNotExpr.create(this.key, this));
|
|
194
194
|
}
|
|
195
195
|
return this.negated;
|
|
196
196
|
}
|
|
@@ -204,7 +204,7 @@ class ContextKeyEqualsExpr {
|
|
|
204
204
|
}
|
|
205
205
|
static create(key, value, negated = null) {
|
|
206
206
|
if (typeof value === 'boolean') {
|
|
207
|
-
return (value ? ContextKeyDefinedExpr.create(key, negated) : ContextKeyNotExpr.create(key, negated));
|
|
207
|
+
return (value ? ( ContextKeyDefinedExpr.create(key, negated)) : ( ContextKeyNotExpr.create(key, negated)));
|
|
208
208
|
}
|
|
209
209
|
const constantValue = CONSTANT_VALUES.get(key);
|
|
210
210
|
if (typeof constantValue === 'boolean') {
|
|
@@ -262,9 +262,9 @@ class ContextKeyNotEqualsExpr {
|
|
|
262
262
|
static create(key, value, negated = null) {
|
|
263
263
|
if (typeof value === 'boolean') {
|
|
264
264
|
if (value) {
|
|
265
|
-
return ContextKeyNotExpr.create(key, negated);
|
|
265
|
+
return ( ContextKeyNotExpr.create(key, negated));
|
|
266
266
|
}
|
|
267
|
-
return ContextKeyDefinedExpr.create(key, negated);
|
|
267
|
+
return ( ContextKeyDefinedExpr.create(key, negated));
|
|
268
268
|
}
|
|
269
269
|
const constantValue = CONSTANT_VALUES.get(key);
|
|
270
270
|
if (typeof constantValue === 'boolean') {
|
|
@@ -358,7 +358,7 @@ class ContextKeyNotExpr {
|
|
|
358
358
|
}
|
|
359
359
|
negate() {
|
|
360
360
|
if (!this.negated) {
|
|
361
|
-
this.negated = ContextKeyDefinedExpr.create(this.key, this);
|
|
361
|
+
this.negated = ( ContextKeyDefinedExpr.create(this.key, this));
|
|
362
362
|
}
|
|
363
363
|
return this.negated;
|
|
364
364
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-vscode-api",
|
|
3
|
-
"version": "1.69.
|
|
3
|
+
"version": "1.69.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -135,11 +135,12 @@
|
|
|
135
135
|
"README.md"
|
|
136
136
|
],
|
|
137
137
|
"scripts": {
|
|
138
|
-
"build": "
|
|
138
|
+
"build": "npm run clean && npm run compile && npm run lint && npm run generate-types && npm run compile-webpack-loader",
|
|
139
139
|
"compile": "rollup --config rollup/rollup.config.ts --configPlugin 'typescript={tsconfig: `tsconfig.rollup.json`}' --vscode-version ${npm_package_config_vscode_version}",
|
|
140
|
+
"clean": "rm -rf dist/",
|
|
140
141
|
"compile-webpack-loader": "tsc --target es2020 -lib es2020 --module commonjs --skipLibCheck --moduleResolution node --declaration --outDir dist src/webpack-loader.ts && mv dist/webpack-loader.js dist/webpack-loader.cjs",
|
|
141
142
|
"preprepare": "./scripts/install-vscode",
|
|
142
|
-
"lint": "eslint
|
|
143
|
+
"lint": "eslint {**/src/**/*.ts,./rollup/*.ts,./*.ts}",
|
|
143
144
|
"generate-types": "tsc --project tsconfig.types.json && rollup --config rollup/rollup.types.config.ts --configPlugin 'typescript={tsconfig: `tsconfig.rollup.json`}' && rm -rf ./dist/types",
|
|
144
145
|
"release": "node --loader ts-node/esm release.ts ${npm_package_config_vscode_version}"
|
|
145
146
|
},
|
|
@@ -164,9 +165,9 @@
|
|
|
164
165
|
"@types/babel__core": "^7.20.0",
|
|
165
166
|
"@types/semver": "^7.3.13",
|
|
166
167
|
"@types/vscode": "~1.69.1",
|
|
167
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
168
|
-
"@typescript-eslint/parser": "^5.
|
|
169
|
-
"eslint": "^8.
|
|
168
|
+
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
169
|
+
"@typescript-eslint/parser": "^5.54.0",
|
|
170
|
+
"eslint": "^8.35.0",
|
|
170
171
|
"eslint-config-standard": "^17.0.0",
|
|
171
172
|
"eslint-plugin-import": "^2.27.5",
|
|
172
173
|
"eslint-plugin-n": "^15.6.1",
|
|
@@ -174,14 +175,14 @@
|
|
|
174
175
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
175
176
|
"js-cleanup": "^1.2.0",
|
|
176
177
|
"recast": "^0.22.0",
|
|
177
|
-
"rollup": "^3.17.
|
|
178
|
+
"rollup": "^3.17.3",
|
|
178
179
|
"rollup-plugin-dts": "^5.2.0",
|
|
179
180
|
"rollup-plugin-styles": "^4.0.0",
|
|
180
181
|
"semver": "^7.3.8",
|
|
181
182
|
"ts-node": "^10.9.1",
|
|
182
183
|
"typescript": "^4.9.5",
|
|
183
184
|
"webpack": "^5.75.0",
|
|
184
|
-
"zx": "^7.
|
|
185
|
+
"zx": "^7.2.0"
|
|
185
186
|
},
|
|
186
187
|
"dependencies": {},
|
|
187
188
|
"peerDependencies": {
|
|
@@ -191,11 +192,11 @@
|
|
|
191
192
|
},
|
|
192
193
|
"overrides": {
|
|
193
194
|
"rollup-plugin-styles": {
|
|
194
|
-
"rollup": "3.17.
|
|
195
|
+
"rollup": "3.17.3"
|
|
195
196
|
}
|
|
196
197
|
},
|
|
197
198
|
"volta": {
|
|
198
|
-
"node": "18.
|
|
199
|
-
"npm": "9.
|
|
199
|
+
"node": "18.14.2",
|
|
200
|
+
"npm": "9.5.1"
|
|
200
201
|
}
|
|
201
202
|
}
|