@codingame/monaco-vscode-api 1.69.20 → 1.69.21

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/types.js CHANGED
@@ -43,4 +43,4 @@ function isEmptyObject(obj) {
43
43
  function withUndefinedAsNull(x) {
44
44
  return typeof x === 'undefined' ? null : x;
45
45
  }
46
- export { assertAllDefined as a, isEmptyObject as b, isStringArray as i, withUndefinedAsNull as w };
46
+ export { assertAllDefined as a, isStringArray as b, isEmptyObject as i, withUndefinedAsNull as w };
@@ -1,6 +1,6 @@
1
1
  import { s as refineServiceDecorator } from './services2.js';
2
- import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
3
2
  import { isString, isBoolean } from 'monaco-editor/esm/vs/base/common/types.js';
3
+ import { IThemeService } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
4
4
  const IWorkbenchThemeService = refineServiceDecorator(IThemeService);
5
5
  const VS_LIGHT_THEME = 'vs';
6
6
  const VS_DARK_THEME = 'vs-dark';
package/dist/workspace.js CHANGED
@@ -4,103 +4,6 @@ import { isMacintosh, isLinux, isWindows, isWeb, isEdge, isFirefox, isChrome, is
4
4
  import { joinPath } from 'monaco-editor/esm/vs/base/common/resources.js';
5
5
  import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
6
6
  const Emitter = monaco.Emitter;
7
- function sortedDiff(before, after, compare) {
8
- const result = [];
9
- function pushSplice(start, deleteCount, toInsert) {
10
- if (deleteCount === 0 && toInsert.length === 0) {
11
- return;
12
- }
13
- const latest = result[result.length - 1];
14
- if (latest && latest.start + latest.deleteCount === start) {
15
- latest.deleteCount += deleteCount;
16
- latest.toInsert.push(...toInsert);
17
- }
18
- else {
19
- result.push({ start, deleteCount, toInsert });
20
- }
21
- }
22
- let beforeIdx = 0;
23
- let afterIdx = 0;
24
- while (true) {
25
- if (beforeIdx === before.length) {
26
- pushSplice(beforeIdx, 0, after.slice(afterIdx));
27
- break;
28
- }
29
- if (afterIdx === after.length) {
30
- pushSplice(beforeIdx, before.length - beforeIdx, []);
31
- break;
32
- }
33
- const beforeElement = before[beforeIdx];
34
- const afterElement = after[afterIdx];
35
- const n = compare(beforeElement, afterElement);
36
- if (n === 0) {
37
- beforeIdx += 1;
38
- afterIdx += 1;
39
- }
40
- else if (n < 0) {
41
- pushSplice(beforeIdx, 1, []);
42
- beforeIdx += 1;
43
- }
44
- else if (n > 0) {
45
- pushSplice(beforeIdx, 0, [afterElement]);
46
- afterIdx += 1;
47
- }
48
- }
49
- return result;
50
- }
51
- function delta(before, after, compare) {
52
- const splices = sortedDiff(before, after, compare);
53
- const removed = [];
54
- const added = [];
55
- for (const splice of splices) {
56
- removed.push(...before.slice(splice.start, splice.start + splice.deleteCount));
57
- added.push(...splice.toInsert);
58
- }
59
- return { removed, added };
60
- }
61
- function coalesceInPlace(array) {
62
- let to = 0;
63
- for (let i = 0; i < array.length; i++) {
64
- if (!!array[i]) {
65
- array[to] = array[i];
66
- to += 1;
67
- }
68
- }
69
- array.length = to;
70
- }
71
- function flatten(arr) {
72
- return [].concat(...arr);
73
- }
74
- function index(array, indexer, mapper) {
75
- return array.reduce((r, t) => {
76
- r[indexer(t)] = mapper ? mapper(t) : t;
77
- return r;
78
- }, Object.create(null));
79
- }
80
- function shuffle(array, _seed) {
81
- let rand;
82
- if (typeof _seed === 'number') {
83
- let seed = _seed;
84
- rand = () => {
85
- const x = Math.sin(seed++) * 179426549;
86
- return x - Math.floor(x);
87
- };
88
- }
89
- else {
90
- rand = Math.random;
91
- }
92
- for (let i = array.length - 1; i > 0; i -= 1) {
93
- const j = Math.floor(rand() * (i + 1));
94
- const temp = array[i];
95
- array[i] = array[j];
96
- array[j] = temp;
97
- }
98
- }
99
- function mapArrayOrNot(items, fn) {
100
- return Array.isArray(items) ?
101
- items.map(fn) :
102
- fn(items);
103
- }
104
7
  var NeverShowAgainScope;
105
8
  ( (function(NeverShowAgainScope) {
106
9
  NeverShowAgainScope[NeverShowAgainScope["WORKSPACE"] = 0] = "WORKSPACE";
@@ -534,4 +437,4 @@ class WorkspaceFolder {
534
437
  return { uri: this.uri, name: this.name, index: this.index };
535
438
  }
536
439
  }
537
- export { ContextKeyExprType as C, Emitter as E, NoOpNotification as N, RawContextKey as R, WorkspaceFolder as W, __decorate as _, __param as a, __classPrivateFieldSet as b, __classPrivateFieldGet as c, coalesceInPlace as d, delta as e, NotificationsFilter as f, NeverShowAgainScope as g, index as h, isWorkspaceIdentifier as i, flatten as j, mapArrayOrNot as m, shuffle as s };
440
+ export { ContextKeyExprType as C, Emitter as E, NotificationsFilter as N, RawContextKey as R, WorkspaceFolder as W, __decorate as _, __param as a, NeverShowAgainScope as b, __classPrivateFieldSet as c, __classPrivateFieldGet as d, NoOpNotification as e, isWorkspaceIdentifier as i };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-api",
3
- "version": "1.69.20",
3
+ "version": "1.69.21",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor",
6
6
  "keywords": [],
@@ -149,11 +149,11 @@
149
149
  }
150
150
  },
151
151
  "devDependencies": {
152
- "@babel/core": "^7.20.12",
152
+ "@babel/core": "^7.21.0",
153
153
  "@babel/plugin-proposal-class-properties": "^7.18.6",
154
- "@babel/plugin-proposal-decorators": "^7.20.13",
154
+ "@babel/plugin-proposal-decorators": "^7.21.0",
155
155
  "@babel/preset-env": "^7.20.2",
156
- "@babel/preset-typescript": "^7.18.6",
156
+ "@babel/preset-typescript": "^7.21.0",
157
157
  "@codingame/eslint-config": "^1.1.6",
158
158
  "@codingame/tsconfig": "^1.1.1",
159
159
  "@octokit/rest": "^19.0.7",
@@ -164,9 +164,9 @@
164
164
  "@types/babel__core": "^7.20.0",
165
165
  "@types/semver": "^7.3.13",
166
166
  "@types/vscode": "~1.69.1",
167
- "@typescript-eslint/eslint-plugin": "^5.50.0",
168
- "@typescript-eslint/parser": "^5.50.0",
169
- "eslint": "^8.33.0",
167
+ "@typescript-eslint/eslint-plugin": "^5.53.0",
168
+ "@typescript-eslint/parser": "^5.53.0",
169
+ "eslint": "^8.34.0",
170
170
  "eslint-config-standard": "^17.0.0",
171
171
  "eslint-plugin-import": "^2.27.5",
172
172
  "eslint-plugin-n": "^15.6.1",
@@ -174,8 +174,8 @@
174
174
  "eslint-plugin-unused-imports": "^2.0.0",
175
175
  "js-cleanup": "^1.2.0",
176
176
  "recast": "^0.22.0",
177
- "rollup": "^3.12.1",
178
- "rollup-plugin-dts": "^5.1.1",
177
+ "rollup": "^3.17.2",
178
+ "rollup-plugin-dts": "^5.2.0",
179
179
  "rollup-plugin-styles": "^4.0.0",
180
180
  "semver": "^7.3.8",
181
181
  "ts-node": "^10.9.1",
@@ -191,7 +191,7 @@
191
191
  },
192
192
  "overrides": {
193
193
  "rollup-plugin-styles": {
194
- "rollup": "3.12.1"
194
+ "rollup": "3.17.2"
195
195
  }
196
196
  },
197
197
  "volta": {