@codingame/monaco-vscode-api 1.78.5-next.0 → 1.78.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/dist/json.js +1 -1
- package/dist/service-override/configuration.js +2 -2
- package/dist/service-override/keybindings.js +1 -1
- package/dist/services.js +2 -2
- package/dist/vscode/vs/base/common/jsonEdit.js +1 -1
- package/dist/vscode/vs/base/common/jsonFormatter.js +1 -1
- package/dist/vscode/vs/platform/extensionResourceLoader/common/extensionResourceLoader.js +1 -1
- package/dist/vscode/vs/platform/files/common/fileService.js +2 -2
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/dist/vscode/vs/platform/userDataSync/common/settingsMerge.js +1 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +3 -3
- package/dist/vscode/vs/workbench/api/browser/mainThreadBulkEdits.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystemEventService.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadLanguageFeatures.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadTelemetry.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +8 -8
- package/dist/vscode/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialog.web.contribution.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/dialogs/dialogHandler.js +1 -1
- package/dist/vscode/vs/workbench/common/contributions.js +1 -1
- package/dist/vscode/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +2 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugService.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugStorage.js +1 -1
- package/dist/vscode/vs/workbench/contrib/files/browser/explorerService.js +1 -1
- package/dist/vscode/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
- package/dist/vscode/vs/workbench/services/configuration/common/configurationEditing.js +4 -4
- package/dist/vscode/vs/workbench/services/configuration/common/jsonEditingService.js +2 -2
- package/dist/vscode/vs/workbench/services/decorations/browser/decorationsService.js +1 -1
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +1 -1
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +1 -1
- package/dist/vscode/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +1 -1
- package/dist/vscode/vs/workbench/services/lifecycle/common/lifecycleService.js +1 -1
- package/dist/vscode/vs/workbench/services/preferences/browser/preferencesService.js +2 -2
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/browser/browserTextFileService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/browser/textFileService.js +2 -2
- package/dist/vscode/vs/workbench/services/textfile/common/encoding.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textEditorService.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModel.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +1 -1
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +1 -1
- package/dist/vscode/vs/workbench/services/themes/browser/fileIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/productIconThemeData.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
- package/dist/vscode/vs/workbench/services/themes/common/colorThemeData.js +5 -5
- package/dist/vscode/vs/workbench/services/userDataProfile/common/userDataProfileService.js +1 -1
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +1 -1
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyFileService.js +1 -1
- package/dist/vscode/vs/workbench/services/workspaces/browser/abstractWorkspaceEditingService.js +2 -2
- package/dist/vscode/vs/workbench/services/workspaces/browser/workspacesService.js +1 -1
- package/dist/vscode-services/missing-services.js +3 -3
- package/monaco-editor-treemending.patch +819 -819
- package/package.json +3 -2
- package/dist/vscode/vs/base/common/json.js +0 -713
- package/dist/vscode/vs/base/common/performance.js +0 -18
- package/dist/vscode/vs/base/common/stream.js +0 -300
- package/dist/vscode/vs/platform/product/common/productService.js +0 -4
- package/dist/vscode/vs/platform/remote/common/remoteHosts.js +0 -18
- package/dist/vscode/vs/platform/uriIdentity/common/uriIdentity.js +0 -3
- package/dist/vscode/vs/platform/userDataProfile/common/userDataProfile.js +0 -427
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const mark = (name) => {
|
|
2
|
-
performance.mark(name);
|
|
3
|
-
};
|
|
4
|
-
const getMarks = () => {
|
|
5
|
-
let timeOrigin = performance.timeOrigin;
|
|
6
|
-
if (typeof timeOrigin !== 'number') {
|
|
7
|
-
timeOrigin = performance.timing.navigationStart || performance.timing.redirectStart || performance.timing.fetchStart;
|
|
8
|
-
}
|
|
9
|
-
const result = [{ name: 'code/timeOrigin', startTime: Math.round(timeOrigin) }];
|
|
10
|
-
for (const entry of performance.getEntriesByType('mark')) {
|
|
11
|
-
result.push({
|
|
12
|
-
name: entry.name,
|
|
13
|
-
startTime: Math.round(timeOrigin + entry.startTime)
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return result;
|
|
17
|
-
};
|
|
18
|
-
export { getMarks, mark };
|
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
2
|
-
import { toDisposable, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
|
-
function isReadableStream(obj) {
|
|
4
|
-
const candidate = obj;
|
|
5
|
-
if (!candidate) {
|
|
6
|
-
return false;
|
|
7
|
-
}
|
|
8
|
-
return [candidate.on, candidate.pause, candidate.resume, candidate.destroy].every(fn => typeof fn === 'function');
|
|
9
|
-
}
|
|
10
|
-
function isReadableBufferedStream(obj) {
|
|
11
|
-
const candidate = obj;
|
|
12
|
-
if (!candidate) {
|
|
13
|
-
return false;
|
|
14
|
-
}
|
|
15
|
-
return isReadableStream(candidate.stream) && Array.isArray(candidate.buffer) && typeof candidate.ended === 'boolean';
|
|
16
|
-
}
|
|
17
|
-
function newWriteableStream(reducer, options) {
|
|
18
|
-
return ( new WriteableStreamImpl(reducer, options));
|
|
19
|
-
}
|
|
20
|
-
class WriteableStreamImpl {
|
|
21
|
-
constructor(reducer, options) {
|
|
22
|
-
this.reducer = reducer;
|
|
23
|
-
this.options = options;
|
|
24
|
-
this.state = {
|
|
25
|
-
flowing: false,
|
|
26
|
-
ended: false,
|
|
27
|
-
destroyed: false
|
|
28
|
-
};
|
|
29
|
-
this.buffer = {
|
|
30
|
-
data: [],
|
|
31
|
-
error: []
|
|
32
|
-
};
|
|
33
|
-
this.listeners = {
|
|
34
|
-
data: [],
|
|
35
|
-
error: [],
|
|
36
|
-
end: []
|
|
37
|
-
};
|
|
38
|
-
this.pendingWritePromises = [];
|
|
39
|
-
}
|
|
40
|
-
pause() {
|
|
41
|
-
if (this.state.destroyed) {
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
this.state.flowing = false;
|
|
45
|
-
}
|
|
46
|
-
resume() {
|
|
47
|
-
if (this.state.destroyed) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
if (!this.state.flowing) {
|
|
51
|
-
this.state.flowing = true;
|
|
52
|
-
this.flowData();
|
|
53
|
-
this.flowErrors();
|
|
54
|
-
this.flowEnd();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
write(data) {
|
|
58
|
-
if (this.state.destroyed) {
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
if (this.state.flowing) {
|
|
62
|
-
this.emitData(data);
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
this.buffer.data.push(data);
|
|
66
|
-
if (typeof this.options?.highWaterMark === 'number' && this.buffer.data.length > this.options.highWaterMark) {
|
|
67
|
-
return ( new Promise(resolve => this.pendingWritePromises.push(resolve)));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
error(error) {
|
|
72
|
-
if (this.state.destroyed) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (this.state.flowing) {
|
|
76
|
-
this.emitError(error);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
this.buffer.error.push(error);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
end(result) {
|
|
83
|
-
if (this.state.destroyed) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
if (typeof result !== 'undefined') {
|
|
87
|
-
this.write(result);
|
|
88
|
-
}
|
|
89
|
-
if (this.state.flowing) {
|
|
90
|
-
this.emitEnd();
|
|
91
|
-
this.destroy();
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
this.state.ended = true;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
emitData(data) {
|
|
98
|
-
this.listeners.data.slice(0).forEach(listener => listener(data));
|
|
99
|
-
}
|
|
100
|
-
emitError(error) {
|
|
101
|
-
if (this.listeners.error.length === 0) {
|
|
102
|
-
onUnexpectedError(error);
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
this.listeners.error.slice(0).forEach(listener => listener(error));
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
emitEnd() {
|
|
109
|
-
this.listeners.end.slice(0).forEach(listener => listener());
|
|
110
|
-
}
|
|
111
|
-
on(event, callback) {
|
|
112
|
-
if (this.state.destroyed) {
|
|
113
|
-
return;
|
|
114
|
-
}
|
|
115
|
-
switch (event) {
|
|
116
|
-
case 'data':
|
|
117
|
-
this.listeners.data.push(callback);
|
|
118
|
-
this.resume();
|
|
119
|
-
break;
|
|
120
|
-
case 'end':
|
|
121
|
-
this.listeners.end.push(callback);
|
|
122
|
-
if (this.state.flowing && this.flowEnd()) {
|
|
123
|
-
this.destroy();
|
|
124
|
-
}
|
|
125
|
-
break;
|
|
126
|
-
case 'error':
|
|
127
|
-
this.listeners.error.push(callback);
|
|
128
|
-
if (this.state.flowing) {
|
|
129
|
-
this.flowErrors();
|
|
130
|
-
}
|
|
131
|
-
break;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
removeListener(event, callback) {
|
|
135
|
-
if (this.state.destroyed) {
|
|
136
|
-
return;
|
|
137
|
-
}
|
|
138
|
-
let listeners = undefined;
|
|
139
|
-
switch (event) {
|
|
140
|
-
case 'data':
|
|
141
|
-
listeners = this.listeners.data;
|
|
142
|
-
break;
|
|
143
|
-
case 'end':
|
|
144
|
-
listeners = this.listeners.end;
|
|
145
|
-
break;
|
|
146
|
-
case 'error':
|
|
147
|
-
listeners = this.listeners.error;
|
|
148
|
-
break;
|
|
149
|
-
}
|
|
150
|
-
if (listeners) {
|
|
151
|
-
const index = listeners.indexOf(callback);
|
|
152
|
-
if (index >= 0) {
|
|
153
|
-
listeners.splice(index, 1);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
flowData() {
|
|
158
|
-
if (this.buffer.data.length > 0) {
|
|
159
|
-
const fullDataBuffer = this.reducer(this.buffer.data);
|
|
160
|
-
this.emitData(fullDataBuffer);
|
|
161
|
-
this.buffer.data.length = 0;
|
|
162
|
-
const pendingWritePromises = [...this.pendingWritePromises];
|
|
163
|
-
this.pendingWritePromises.length = 0;
|
|
164
|
-
pendingWritePromises.forEach(pendingWritePromise => pendingWritePromise());
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
flowErrors() {
|
|
168
|
-
if (this.listeners.error.length > 0) {
|
|
169
|
-
for (const error of this.buffer.error) {
|
|
170
|
-
this.emitError(error);
|
|
171
|
-
}
|
|
172
|
-
this.buffer.error.length = 0;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
flowEnd() {
|
|
176
|
-
if (this.state.ended) {
|
|
177
|
-
this.emitEnd();
|
|
178
|
-
return this.listeners.end.length > 0;
|
|
179
|
-
}
|
|
180
|
-
return false;
|
|
181
|
-
}
|
|
182
|
-
destroy() {
|
|
183
|
-
if (!this.state.destroyed) {
|
|
184
|
-
this.state.destroyed = true;
|
|
185
|
-
this.state.ended = true;
|
|
186
|
-
this.buffer.data.length = 0;
|
|
187
|
-
this.buffer.error.length = 0;
|
|
188
|
-
this.listeners.data.length = 0;
|
|
189
|
-
this.listeners.error.length = 0;
|
|
190
|
-
this.listeners.end.length = 0;
|
|
191
|
-
this.pendingWritePromises.length = 0;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
function peekReadable(readable, reducer, maxChunks) {
|
|
196
|
-
const chunks = [];
|
|
197
|
-
let chunk = undefined;
|
|
198
|
-
while ((chunk = readable.read()) !== null && chunks.length < maxChunks) {
|
|
199
|
-
chunks.push(chunk);
|
|
200
|
-
}
|
|
201
|
-
if (chunk === null && chunks.length > 0) {
|
|
202
|
-
return reducer(chunks);
|
|
203
|
-
}
|
|
204
|
-
return {
|
|
205
|
-
read: () => {
|
|
206
|
-
if (chunks.length > 0) {
|
|
207
|
-
return chunks.shift();
|
|
208
|
-
}
|
|
209
|
-
if (typeof chunk !== 'undefined') {
|
|
210
|
-
const lastReadChunk = chunk;
|
|
211
|
-
chunk = undefined;
|
|
212
|
-
return lastReadChunk;
|
|
213
|
-
}
|
|
214
|
-
return readable.read();
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
function consumeStream(stream, reducer) {
|
|
219
|
-
return ( new Promise((resolve, reject) => {
|
|
220
|
-
const chunks = [];
|
|
221
|
-
listenStream(stream, {
|
|
222
|
-
onData: chunk => {
|
|
223
|
-
if (reducer) {
|
|
224
|
-
chunks.push(chunk);
|
|
225
|
-
}
|
|
226
|
-
},
|
|
227
|
-
onError: error => {
|
|
228
|
-
if (reducer) {
|
|
229
|
-
reject(error);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
resolve(undefined);
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
onEnd: () => {
|
|
236
|
-
if (reducer) {
|
|
237
|
-
resolve(reducer(chunks));
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
resolve(undefined);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
});
|
|
244
|
-
}));
|
|
245
|
-
}
|
|
246
|
-
function listenStream(stream, listener) {
|
|
247
|
-
let destroyed = false;
|
|
248
|
-
stream.on('error', error => {
|
|
249
|
-
if (!destroyed) {
|
|
250
|
-
listener.onError(error);
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
stream.on('end', () => {
|
|
254
|
-
if (!destroyed) {
|
|
255
|
-
listener.onEnd();
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
stream.on('data', data => {
|
|
259
|
-
if (!destroyed) {
|
|
260
|
-
listener.onData(data);
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
return toDisposable(() => destroyed = true);
|
|
264
|
-
}
|
|
265
|
-
function peekStream(stream, maxChunks) {
|
|
266
|
-
return ( new Promise((resolve, reject) => {
|
|
267
|
-
const streamListeners = ( new DisposableStore());
|
|
268
|
-
const buffer = [];
|
|
269
|
-
const dataListener = (chunk) => {
|
|
270
|
-
buffer.push(chunk);
|
|
271
|
-
if (buffer.length > maxChunks) {
|
|
272
|
-
streamListeners.dispose();
|
|
273
|
-
stream.pause();
|
|
274
|
-
return resolve({ stream, buffer, ended: false });
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
const errorListener = (error) => {
|
|
278
|
-
return reject(error);
|
|
279
|
-
};
|
|
280
|
-
const endListener = () => {
|
|
281
|
-
return resolve({ stream, buffer, ended: true });
|
|
282
|
-
};
|
|
283
|
-
streamListeners.add(toDisposable(() => stream.removeListener('error', errorListener)));
|
|
284
|
-
stream.on('error', errorListener);
|
|
285
|
-
streamListeners.add(toDisposable(() => stream.removeListener('end', endListener)));
|
|
286
|
-
stream.on('end', endListener);
|
|
287
|
-
streamListeners.add(toDisposable(() => stream.removeListener('data', dataListener)));
|
|
288
|
-
stream.on('data', dataListener);
|
|
289
|
-
}));
|
|
290
|
-
}
|
|
291
|
-
function transform(stream, transformer, reducer) {
|
|
292
|
-
const target = newWriteableStream(reducer);
|
|
293
|
-
listenStream(stream, {
|
|
294
|
-
onData: data => target.write(transformer.data(data)),
|
|
295
|
-
onError: error => target.error(transformer.error ? transformer.error(error) : error),
|
|
296
|
-
onEnd: () => target.end()
|
|
297
|
-
});
|
|
298
|
-
return target;
|
|
299
|
-
}
|
|
300
|
-
export { consumeStream, isReadableBufferedStream, isReadableStream, listenStream, newWriteableStream, peekReadable, peekStream, transform };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
2
|
-
const IProductService = ( createDecorator('productService'));
|
|
3
|
-
const productSchemaId = 'vscode://schemas/vscode-product';
|
|
4
|
-
export { IProductService, productSchemaId };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
2
|
-
function getRemoteAuthority(uri) {
|
|
3
|
-
return uri.scheme === Schemas.vscodeRemote ? uri.authority : undefined;
|
|
4
|
-
}
|
|
5
|
-
function getRemoteName(authority) {
|
|
6
|
-
if (!authority) {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
const pos = authority.indexOf('+');
|
|
10
|
-
if (pos < 0) {
|
|
11
|
-
return authority;
|
|
12
|
-
}
|
|
13
|
-
return authority.substr(0, pos);
|
|
14
|
-
}
|
|
15
|
-
function getRemoteServerRootPath(product) {
|
|
16
|
-
return `/${product.quality ?? 'oss'}-${product.commit ?? 'dev'}`;
|
|
17
|
-
}
|
|
18
|
-
export { getRemoteAuthority, getRemoteName, getRemoteServerRootPath };
|