@codingame/monaco-vscode-api 1.69.2 → 1.69.5
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 +26 -1
- package/dist/configuration.js +3 -2
- package/dist/contextkey.js +387 -0
- package/dist/dialogs.d.ts +7 -0
- package/dist/dialogs.js +97 -0
- package/dist/extHost.js +3 -2
- package/dist/files.js +3 -3
- package/dist/keybindings.js +2 -2
- package/dist/languageConfiguration.js +2 -2
- package/dist/languageService.js +2 -2
- package/dist/languages.js +1 -1
- package/dist/layout.js +1318 -0
- package/dist/messages.d.ts +3 -0
- package/dist/messages.js +4 -3619
- package/dist/missing-services.js +54 -437
- package/dist/modelEditor.js +3 -2
- package/dist/monaco.d.ts +19 -1
- package/dist/monaco.js +2 -1
- package/dist/notifications.d.ts +7 -0
- package/dist/notifications.js +2577 -0
- package/dist/services.d.ts +19 -1
- package/dist/services.js +1 -0
- package/dist/snippets.js +3 -2
- package/dist/textmate.js +3 -3
- package/dist/theme.js +2 -2
- package/dist/tokenClassification.js +1 -1
- package/dist/tools.js +1 -1
- package/dist/types.js +46 -0
- package/package.json +15 -7
- package/dist/tslib.es6.js +0 -21
package/dist/services.d.ts
CHANGED
|
@@ -4914,6 +4914,24 @@ declare class IndentRulesSupport {
|
|
|
4914
4914
|
getIndentMetadata(text: string): number;
|
|
4915
4915
|
}
|
|
4916
4916
|
|
|
4917
|
+
declare const enum ContextKeyExprType {
|
|
4918
|
+
False = 0,
|
|
4919
|
+
True = 1,
|
|
4920
|
+
Defined = 2,
|
|
4921
|
+
Not = 3,
|
|
4922
|
+
Equals = 4,
|
|
4923
|
+
NotEquals = 5,
|
|
4924
|
+
And = 6,
|
|
4925
|
+
Regex = 7,
|
|
4926
|
+
NotRegex = 8,
|
|
4927
|
+
Or = 9,
|
|
4928
|
+
In = 10,
|
|
4929
|
+
NotIn = 11,
|
|
4930
|
+
Greater = 12,
|
|
4931
|
+
GreaterEquals = 13,
|
|
4932
|
+
Smaller = 14,
|
|
4933
|
+
SmallerEquals = 15
|
|
4934
|
+
}
|
|
4917
4935
|
interface IContextKeyExprMapper {
|
|
4918
4936
|
mapDefined(key: string): ContextKeyExpression;
|
|
4919
4937
|
mapNot(key: string): ContextKeyExpression;
|
|
@@ -15932,4 +15950,4 @@ declare namespace Services {
|
|
|
15932
15950
|
function install(_services: Services): vscode.Disposable;
|
|
15933
15951
|
}
|
|
15934
15952
|
|
|
15935
|
-
export { IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, Window, Workspace };
|
|
15953
|
+
export { ContextKeyExprType, IBulkEditService, IClipboardService, ICodeEditorService, IColorTheme, ICommandService, IConfigurationChangeEvent, IConfigurationService, IDialogService, IEditorGroupsService, IEditorService, IEditorWorkerService, IFileService, IHostService, IInstantiationService, ILanguageConfigurationService, ILanguageFeaturesService, ILanguageService, ILanguageStatusService, IMarkerService, IModelService, INotificationService, IOpenerService, IPaneCompositePartService, IPathService, IProductService, IQuickInputService, ISnippetsService, ITelemetryService, ITextFileService, ITextModelContentProvider, ITextModelService, IThemeService, IUriIdentityService, IWorkbenchEnvironmentService, IWorkingCopyFileService, IWorkspaceContextService, NotificationsFilter, Services, Severity$1 as Severity, StandaloneServices, Window, Workspace };
|
package/dist/services.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { f as IEditorGroupsService, c as IEditorService, I as IFileService, l as IHostService, k as ILanguageStatusService, d as IPaneCompositePartService, i as IPathService, j as IProductService, m as ISnippetsService, e as ITextFileService, b as IUriIdentityService, g as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, w as NotificationsFilter, S as Services } from './services2.js';
|
|
2
|
+
export { C as ContextKeyExprType } from './contextkey.js';
|
|
2
3
|
export { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
3
4
|
export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
4
5
|
export { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
package/dist/snippets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as IUserDataProfileService, b as ILifecycleService, J as ExtensionMessageCollector, K as parse, M as getNodeType, f as ExtensionsRegistry } from './missing-services.js';
|
|
2
2
|
import { m as ISnippetsService, I as IFileService, e as ITextFileService, S as Services } from './services2.js';
|
|
3
|
-
import { _ as __decorate, a as __param } from './
|
|
3
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
4
4
|
import * as monacoSuggest from 'monaco-editor/esm/vs/editor/contrib/suggest/browser/suggest.js';
|
|
5
5
|
import { extname as extname$1, basename as basename$1 } from 'monaco-editor/esm/vs/base/common/path.js';
|
|
6
6
|
import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
@@ -22,6 +22,7 @@ import { ILanguageConfigurationService } from 'monaco-editor/esm/vs/editor/commo
|
|
|
22
22
|
import { MarkdownString } from 'monaco-editor/esm/vs/base/common/htmlContent.js';
|
|
23
23
|
import { StopWatch } from 'monaco-editor/esm/vs/base/common/stopwatch.js';
|
|
24
24
|
import { I as IExtensionResourceLoaderService, r as registerExtensionFile } from './files.js';
|
|
25
|
+
import { i as isStringArray } from './types.js';
|
|
25
26
|
import { DisposableStore, combinedDisposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
26
27
|
import { ResourceMap } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
27
28
|
import { IEnvironmentService } from 'monaco-editor/esm/vs/platform/environment/common/environment.js';
|
package/dist/textmate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as __decorate, a as __param } from './
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
2
|
+
import { f as ExtensionsRegistry, J as ExtensionMessageCollector, L as ITextMateService, E as Emitter } from './missing-services.js';
|
|
3
|
+
export { L as ITextMateService } from './missing-services.js';
|
|
4
4
|
import { l as languagesExtPoint } from './languageService.js';
|
|
5
5
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
6
6
|
import { I as IWorkbenchThemeService } from './workbenchThemeService.js';
|
package/dist/theme.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IExtensionService,
|
|
2
|
-
import { _ as __decorate, a as __param } from './
|
|
1
|
+
import { I as IExtensionService, O as IBrowserWorkbenchEnvironmentService, P as IHostColorSchemeService, Q as IUserDataInitializationService, f as ExtensionsRegistry, E as Emitter, S as Sequencer, J as ExtensionMessageCollector, K as parse$1, M as getNodeType } from './missing-services.js';
|
|
2
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
3
3
|
import { V as VS_DARK_THEME, a as VS_LIGHT_THEME, b as VS_HC_THEME, c as VS_HC_LIGHT_THEME, T as ThemeSettings, E as ExtensionData, d as THEME_SCOPE_OPEN_PAREN, e as THEME_SCOPE_CLOSE_PAREN, f as THEME_SCOPE_WILDCARD, t as themeScopeRegex } from './workbenchThemeService.js';
|
|
4
4
|
import { workbenchColorsSchemaId, editorBackground, editorForeground, editorSelectionBackground, editorInactiveSelection, editorSelectionHighlight, editorFindMatchHighlight, editorFindMatch, editorHoverHighlight, editorFindRangeHighlight, asCssVariableName, Extensions as Extensions$2 } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
5
5
|
import { Color } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as ExtensionsRegistry, J as ExtensionMessageCollector } from './missing-services.js';
|
|
2
2
|
import { g as getTokenClassificationRegistry, a as typeAndModifierIdPattern } from './tokenClassificationRegistry.js';
|
|
3
3
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
4
4
|
import { g as getExtensionPoint, c as consoleExtensionMessageHandler, o as onServicesInitialized } from './tools.js';
|
package/dist/tools.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as ExtensionsRegistry } from './missing-services.js';
|
|
2
2
|
import { EventEmitter } from 'vscode';
|
|
3
3
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
4
4
|
import Severity from 'monaco-editor/esm/vs/base/common/severity.js';
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
function isString(str) {
|
|
2
|
+
return (typeof str === 'string');
|
|
3
|
+
}
|
|
4
|
+
function isStringArray(value) {
|
|
5
|
+
return Array.isArray(value) && value.every(elem => isString(elem));
|
|
6
|
+
}
|
|
7
|
+
function isObject(obj) {
|
|
8
|
+
return typeof obj === 'object'
|
|
9
|
+
&& obj !== null
|
|
10
|
+
&& !Array.isArray(obj)
|
|
11
|
+
&& !(obj instanceof RegExp)
|
|
12
|
+
&& !(obj instanceof Date);
|
|
13
|
+
}
|
|
14
|
+
function isUndefined(obj) {
|
|
15
|
+
return (typeof obj === 'undefined');
|
|
16
|
+
}
|
|
17
|
+
function isUndefinedOrNull(obj) {
|
|
18
|
+
return (isUndefined(obj) || obj === null);
|
|
19
|
+
}
|
|
20
|
+
function assertAllDefined(...args) {
|
|
21
|
+
const result = [];
|
|
22
|
+
for (let i = 0; i < args.length; i++) {
|
|
23
|
+
const arg = args[i];
|
|
24
|
+
if (isUndefinedOrNull(arg)) {
|
|
25
|
+
throw new Error(`Assertion Failed: argument at index ${i} is undefined or null`);
|
|
26
|
+
}
|
|
27
|
+
result.push(arg);
|
|
28
|
+
}
|
|
29
|
+
return result;
|
|
30
|
+
}
|
|
31
|
+
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
32
|
+
function isEmptyObject(obj) {
|
|
33
|
+
if (!isObject(obj)) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
for (const key in obj) {
|
|
37
|
+
if (hasOwnProperty.call(obj, key)) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
function withUndefinedAsNull(x) {
|
|
44
|
+
return typeof x === 'undefined' ? null : x;
|
|
45
|
+
}
|
|
46
|
+
export { assertAllDefined as a, isEmptyObject as b, isStringArray as i, withUndefinedAsNull as w };
|
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.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "VSCode public API plugged on the monaco editor",
|
|
6
6
|
"keywords": [],
|
|
@@ -28,6 +28,14 @@
|
|
|
28
28
|
"types": "./dist/messages.d.ts",
|
|
29
29
|
"default": "./dist/messages.js"
|
|
30
30
|
},
|
|
31
|
+
"./service-override/notifications": {
|
|
32
|
+
"types": "./dist/notifications.d.ts",
|
|
33
|
+
"default": "./dist/notifications.js"
|
|
34
|
+
},
|
|
35
|
+
"./service-override/dialogs": {
|
|
36
|
+
"types": "./dist/dialogs.d.ts",
|
|
37
|
+
"default": "./dist/dialogs.js"
|
|
38
|
+
},
|
|
31
39
|
"./service-override/modelEditor": {
|
|
32
40
|
"types": "./dist/modelEditor.d.ts",
|
|
33
41
|
"default": "./dist/modelEditor.js"
|
|
@@ -134,16 +142,16 @@
|
|
|
134
142
|
"@babel/preset-typescript": "^7.18.6",
|
|
135
143
|
"@codingame/eslint-config": "^1.1.6",
|
|
136
144
|
"@codingame/tsconfig": "^1.1.0",
|
|
137
|
-
"@octokit/rest": "^19.0.
|
|
145
|
+
"@octokit/rest": "^19.0.4",
|
|
138
146
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
139
147
|
"@rollup/plugin-replace": "^4.0.0",
|
|
140
148
|
"@rollup/plugin-typescript": "^8.3.4",
|
|
141
149
|
"@types/babel__core": "^7.1.19",
|
|
142
|
-
"@types/semver": "^7.3.
|
|
150
|
+
"@types/semver": "^7.3.12",
|
|
143
151
|
"@types/vscode": "~1.69.1",
|
|
144
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
145
|
-
"@typescript-eslint/parser": "^5.
|
|
146
|
-
"eslint": "^8.
|
|
152
|
+
"@typescript-eslint/eslint-plugin": "^5.33.1",
|
|
153
|
+
"@typescript-eslint/parser": "^5.33.1",
|
|
154
|
+
"eslint": "^8.22.0",
|
|
147
155
|
"eslint-config-standard": "^17.0.0",
|
|
148
156
|
"eslint-plugin-import": "^2.26.0",
|
|
149
157
|
"eslint-plugin-n": "^15.2.4",
|
|
@@ -151,7 +159,7 @@
|
|
|
151
159
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
152
160
|
"js-cleanup": "^1.2.0",
|
|
153
161
|
"recast": "^0.21.2",
|
|
154
|
-
"rollup": "^2.
|
|
162
|
+
"rollup": "^2.78.1",
|
|
155
163
|
"rollup-plugin-dts": "^4.2.2",
|
|
156
164
|
"rollup-plugin-styles": "^4.0.0",
|
|
157
165
|
"semver": "^7.3.7",
|
package/dist/tslib.es6.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
function __decorate(decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
}
|
|
7
|
-
function __param(paramIndex, decorator) {
|
|
8
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
9
|
-
}
|
|
10
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
11
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
12
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
13
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
14
|
-
}
|
|
15
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
16
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
17
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
18
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
19
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
20
|
-
}
|
|
21
|
-
export { __decorate as _, __param as a, __classPrivateFieldSet as b, __classPrivateFieldGet as c };
|