@codingame/monaco-vscode-api 1.67.13 → 1.67.16

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, t as Services } from './services-fb7952fb.js';
1
+ export { p as IEditorGroupsService, o as IEditorService, h as IFileService, u as IHostService, t as ILanguageStatusService, q as IPaneCompositePartService, l as IPathService, s as IProductService, g as ITextFileService, j as IUriIdentityService, i as IWorkbenchEnvironmentService, k as IWorkingCopyFileService, y as NotificationsFilter, v as Services } from './services-7a462d46.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,6 +17,7 @@ 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';
22
23
  import 'monaco-editor/esm/vs/base/common/network.js';
@@ -28,10 +29,11 @@ import 'monaco-editor/esm/vs/base/common/uri.js';
28
29
  import 'monaco-editor/esm/vs/base/common/lifecycle.js';
29
30
  import 'monaco-editor/esm/vs/base/common/linkedList.js';
30
31
  import 'monaco-editor/esm/vs/platform/log/common/log.js';
31
- import 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
32
32
  import 'monaco-editor/esm/vs/editor/editor.api.js';
33
33
  import 'monaco-editor/esm/vs/nls.js';
34
34
  import 'monaco-editor/esm/vs/base/common/async.js';
35
+ import 'monaco-editor/esm/vs/base/common/map.js';
35
36
  import 'monaco-editor/esm/vs/base/common/errors.js';
36
37
  import 'monaco-editor/esm/vs/base/common/stopwatch.js';
37
38
  import 'monaco-editor/esm/vs/base/common/cancellation.js';
39
+ import 'monaco-editor/esm/vs/base/common/event.js';
@@ -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.13",
3
+ "version": "1.67.16",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -31,6 +31,10 @@
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"
34
38
  }
35
39
  },
36
40
  "typesVersions": {
@@ -43,6 +47,9 @@
43
47
  ],
44
48
  "service-override/modelEditor": [
45
49
  "./dist/modelEditor.d.ts"
50
+ ],
51
+ "service-override/configuration": [
52
+ "./dist/configuration.d.ts"
46
53
  ]
47
54
  }
48
55
  },
@@ -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 };