@codingame/monaco-vscode-api 1.67.14 → 1.67.17

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/dist/services.js CHANGED
@@ -1,4 +1,4 @@
1
- export { n as IEditorGroupsService, l as IEditorService, f as IFileService, s as IHostService, q as ILanguageStatusService, o as IPaneCompositePartService, j as IPathService, p as IProductService, e as ITextFileService, h as IUriIdentityService, g as IWorkbenchEnvironmentService, i as IWorkingCopyFileService, w as NotificationsFilter, t as Services } from './services-621e567e.js';
1
+ export { l as IEditorGroupsService, k as IEditorService, e as IFileService, q as IHostService, p as ILanguageStatusService, n as IPaneCompositePartService, i as IPathService, o as IProductService, b as ITextFileService, g as IUriIdentityService, f as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, v as NotificationsFilter, s as Services } from './services-9299c4ca.js';
2
2
  export { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
3
3
  export { ICommandService } from 'monaco-editor/esm/vs/platform/commands/common/commands.js';
4
4
  export { INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
@@ -17,8 +17,10 @@ export { IMarkerService } from 'monaco-editor/esm/vs/platform/markers/common/mar
17
17
  export { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
18
18
  export { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
19
19
  export { ITelemetryService } from 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
20
+ export { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
20
21
  export { default as Severity } from 'monaco-editor/esm/vs/base/common/severity.js';
21
22
  import 'monaco-editor/esm/vs/platform/environment/common/environment.js';
23
+ import './tslib.es6-16b40665.js';
22
24
  import 'monaco-editor/esm/vs/base/common/network.js';
23
25
  import 'monaco-editor/esm/vs/base/common/platform.js';
24
26
  import 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
@@ -28,10 +30,10 @@ import 'monaco-editor/esm/vs/base/common/uri.js';
28
30
  import 'monaco-editor/esm/vs/base/common/lifecycle.js';
29
31
  import 'monaco-editor/esm/vs/base/common/linkedList.js';
30
32
  import 'monaco-editor/esm/vs/platform/log/common/log.js';
31
- import 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
32
33
  import 'monaco-editor/esm/vs/editor/editor.api.js';
33
34
  import 'monaco-editor/esm/vs/nls.js';
34
35
  import 'monaco-editor/esm/vs/base/common/async.js';
36
+ import 'monaco-editor/esm/vs/base/common/map.js';
35
37
  import 'monaco-editor/esm/vs/base/common/errors.js';
36
38
  import 'monaco-editor/esm/vs/base/common/stopwatch.js';
37
39
  import 'monaco-editor/esm/vs/base/common/cancellation.js';
@@ -0,0 +1,21 @@
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 { __classPrivateFieldSet as _, __classPrivateFieldGet as a, __decorate as b, __param as c };
@@ -0,0 +1,27 @@
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 isUndefined(obj) {
8
+ return (typeof obj === 'undefined');
9
+ }
10
+ function isUndefinedOrNull(obj) {
11
+ return (isUndefined(obj) || obj === null);
12
+ }
13
+ function assertAllDefined(...args) {
14
+ const result = [];
15
+ for (let i = 0; i < args.length; i++) {
16
+ const arg = args[i];
17
+ if (isUndefinedOrNull(arg)) {
18
+ throw new Error(`Assertion Failed: argument at index ${i} is undefined or null`);
19
+ }
20
+ result.push(arg);
21
+ }
22
+ return result;
23
+ }
24
+ function withUndefinedAsNull(x) {
25
+ return typeof x === 'undefined' ? null : x;
26
+ }
27
+ export { assertAllDefined as a, 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.67.14",
3
+ "version": "1.67.17",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -31,6 +31,14 @@
31
31
  "./service-override/modelEditor": {
32
32
  "types": "./dist/modelEditor.d.ts",
33
33
  "default": "./dist/modelEditor.js"
34
+ },
35
+ "./service-override/configuration": {
36
+ "types": "./dist/configuration.d.ts",
37
+ "default": "./dist/configuration.js"
38
+ },
39
+ "./monaco": {
40
+ "types": "./dist/monaco.d.ts",
41
+ "default": "./dist/monaco.js"
34
42
  }
35
43
  },
36
44
  "typesVersions": {
@@ -43,6 +51,12 @@
43
51
  ],
44
52
  "service-override/modelEditor": [
45
53
  "./dist/modelEditor.d.ts"
54
+ ],
55
+ "service-override/configuration": [
56
+ "./dist/configuration.d.ts"
57
+ ],
58
+ "monaco": [
59
+ "./dist/monaco.d.ts"
46
60
  ]
47
61
  }
48
62
  },
@@ -1,46 +0,0 @@
1
- import { CancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
2
- function isThenable(obj) {
3
- return !!obj && typeof obj.then === 'function';
4
- }
5
- function raceCancellationError(promise, token) {
6
- return (
7
- new Promise((resolve, reject) => {
8
- const ref = token.onCancellationRequested(() => {
9
- ref.dispose();
10
- reject( new CancellationError());
11
- });
12
- promise.then(resolve, reject).finally(() => ref.dispose());
13
- })
14
- );
15
- }
16
- function asPromise(callback) {
17
- return (
18
- new Promise((resolve, reject) => {
19
- const item = callback();
20
- if (isThenable(item)) {
21
- item.then(resolve, reject);
22
- }
23
- else {
24
- resolve(item);
25
- }
26
- })
27
- );
28
- }
29
- class IntervalCounter {
30
- constructor(interval, nowFn = () => Date.now()) {
31
- this.interval = interval;
32
- this.nowFn = nowFn;
33
- this.lastIncrementTime = 0;
34
- this.value = 0;
35
- }
36
- increment() {
37
- const now = this.nowFn();
38
- if (now - this.lastIncrementTime > this.interval) {
39
- this.lastIncrementTime = now;
40
- this.value = 0;
41
- }
42
- this.value++;
43
- return this.value;
44
- }
45
- }
46
- export { IntervalCounter as I, asPromise as a, raceCancellationError as r };