@codingame/monaco-vscode-api 1.69.20 → 1.69.22
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 +4 -4
- package/dist/api.js +2 -2
- package/dist/async.js +196 -0
- package/dist/configuration.d.ts +3 -2
- package/dist/configuration.js +337 -7
- package/dist/dialogs.js +899 -5
- package/dist/extHost.js +8 -28
- package/dist/files.js +113 -4
- package/dist/keybindings.js +8 -8
- package/dist/languageConfiguration.js +3 -3
- package/dist/languageService.js +3 -2
- package/dist/languages.js +3 -3
- package/dist/layout.js +8 -898
- package/dist/missing-services.js +10 -1471
- package/dist/modelEditor.js +2 -2
- package/dist/monaco.js +2 -2
- package/dist/notifications.js +10 -10
- package/dist/polyfill.js +99 -2
- package/dist/services.js +2 -2
- package/dist/services2.js +7 -9
- package/dist/snippets.js +7 -7
- package/dist/textmate.js +3 -3
- package/dist/theme.js +6 -5
- package/dist/tokenClassification.js +3 -3
- package/dist/tokenClassificationRegistry.js +1 -1
- package/dist/tools.js +822 -4
- package/dist/types.js +1 -1
- package/dist/workbenchThemeService.js +1 -1
- package/dist/workspace.js +6 -103
- package/package.json +11 -11
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,
|
|
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";
|
|
@@ -287,7 +190,7 @@ class ContextKeyDefinedExpr {
|
|
|
287
190
|
}
|
|
288
191
|
negate() {
|
|
289
192
|
if (!this.negated) {
|
|
290
|
-
this.negated = ContextKeyNotExpr.create(this.key, this);
|
|
193
|
+
this.negated = ( ContextKeyNotExpr.create(this.key, this));
|
|
291
194
|
}
|
|
292
195
|
return this.negated;
|
|
293
196
|
}
|
|
@@ -301,7 +204,7 @@ class ContextKeyEqualsExpr {
|
|
|
301
204
|
}
|
|
302
205
|
static create(key, value, negated = null) {
|
|
303
206
|
if (typeof value === 'boolean') {
|
|
304
|
-
return (value ? ContextKeyDefinedExpr.create(key, negated) : ContextKeyNotExpr.create(key, negated));
|
|
207
|
+
return (value ? ( ContextKeyDefinedExpr.create(key, negated)) : ( ContextKeyNotExpr.create(key, negated)));
|
|
305
208
|
}
|
|
306
209
|
const constantValue = CONSTANT_VALUES.get(key);
|
|
307
210
|
if (typeof constantValue === 'boolean') {
|
|
@@ -359,9 +262,9 @@ class ContextKeyNotEqualsExpr {
|
|
|
359
262
|
static create(key, value, negated = null) {
|
|
360
263
|
if (typeof value === 'boolean') {
|
|
361
264
|
if (value) {
|
|
362
|
-
return ContextKeyNotExpr.create(key, negated);
|
|
265
|
+
return ( ContextKeyNotExpr.create(key, negated));
|
|
363
266
|
}
|
|
364
|
-
return ContextKeyDefinedExpr.create(key, negated);
|
|
267
|
+
return ( ContextKeyDefinedExpr.create(key, negated));
|
|
365
268
|
}
|
|
366
269
|
const constantValue = CONSTANT_VALUES.get(key);
|
|
367
270
|
if (typeof constantValue === 'boolean') {
|
|
@@ -455,7 +358,7 @@ class ContextKeyNotExpr {
|
|
|
455
358
|
}
|
|
456
359
|
negate() {
|
|
457
360
|
if (!this.negated) {
|
|
458
|
-
this.negated = ContextKeyDefinedExpr.create(this.key, this);
|
|
361
|
+
this.negated = ( ContextKeyDefinedExpr.create(this.key, this));
|
|
459
362
|
}
|
|
460
363
|
return this.negated;
|
|
461
364
|
}
|
|
@@ -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,
|
|
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.
|
|
3
|
+
"version": "1.69.22",
|
|
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.
|
|
152
|
+
"@babel/core": "^7.21.0",
|
|
153
153
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
154
|
-
"@babel/plugin-proposal-decorators": "^7.
|
|
154
|
+
"@babel/plugin-proposal-decorators": "^7.21.0",
|
|
155
155
|
"@babel/preset-env": "^7.20.2",
|
|
156
|
-
"@babel/preset-typescript": "^7.
|
|
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.
|
|
168
|
-
"@typescript-eslint/parser": "^5.
|
|
169
|
-
"eslint": "^8.
|
|
167
|
+
"@typescript-eslint/eslint-plugin": "^5.54.0",
|
|
168
|
+
"@typescript-eslint/parser": "^5.54.0",
|
|
169
|
+
"eslint": "^8.35.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,14 +174,14 @@
|
|
|
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.
|
|
178
|
-
"rollup-plugin-dts": "^5.
|
|
177
|
+
"rollup": "^3.17.3",
|
|
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",
|
|
182
182
|
"typescript": "^4.9.5",
|
|
183
183
|
"webpack": "^5.75.0",
|
|
184
|
-
"zx": "^7.
|
|
184
|
+
"zx": "^7.2.0"
|
|
185
185
|
},
|
|
186
186
|
"dependencies": {},
|
|
187
187
|
"peerDependencies": {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
},
|
|
192
192
|
"overrides": {
|
|
193
193
|
"rollup-plugin-styles": {
|
|
194
|
-
"rollup": "3.
|
|
194
|
+
"rollup": "3.17.3"
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
197
|
"volta": {
|