@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.
@@ -1,6 +1,6 @@
1
- interface IEditorOverrideServices {
2
- [index: string]: any;
3
- }
1
+ import * as monaco from 'monaco-editor';
2
+
3
+ type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
4
4
 
5
5
  declare function getServiceOverride(container: HTMLElement): IEditorOverrideServices;
6
6
 
package/dist/messages.js CHANGED
@@ -1,7 +1,8 @@
1
- import { E as Emitter, a as assertAllDefined, I as ILifecycleService, u as unsupported } from './missing-services-0f9c8f22.js';
2
- import { w as NotificationsFilter, b as __decorate, d as __param, f as IFileService, x as refineServiceDecorator, n as IEditorGroupsService, s as IHostService, y as NeverShowAgainScope, p as IProductService } from './services-621e567e.js';
1
+ import { b as __decorate, c as __param } from './tslib.es6-16b40665.js';
2
+ import { E as Emitter, I as ILifecycleService, u as unsupported } from './missing-services-597951f0.js';
3
3
  import { editorWidgetBackground, editorWidgetForeground, widgetShadow, contrastBorder, buttonForeground, buttonBackground, buttonSecondaryBackground, buttonSecondaryForeground, buttonSecondaryHoverBackground, buttonHoverBackground, buttonBorder, simpleCheckboxBorder, simpleCheckboxBackground, simpleCheckboxForeground, problemsErrorIconForeground, problemsWarningIconForeground, problemsInfoIconForeground, inputBackground, inputForeground, inputBorder, textLinkForeground, progressBarBackground, resolveColorValue, registerColor, editorErrorForeground, editorWarningForeground, editorInfoForeground, focusBorder } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
4
4
  import { localize } from 'monaco-editor/esm/vs/nls.js';
5
+ import { v as NotificationsFilter, e as IFileService, w as refineServiceDecorator, l as IEditorGroupsService, q as IHostService, x as NeverShowAgainScope, o as IProductService } from './services-9299c4ca.js';
5
6
  import { Disposable, toDisposable, DisposableStore, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
6
7
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
7
8
  import { NoOpNotification, Severity, INotificationService } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
@@ -38,9 +39,10 @@ import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
38
39
  import { IOpenerService } from 'monaco-editor/esm/vs/platform/opener/common/opener.js';
39
40
  import { IKeybindingService } from 'monaco-editor/esm/vs/platform/keybinding/common/keybinding.js';
40
41
  import { DropdownMenuActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui/dropdown/dropdownActionViewItem.js';
42
+ import { a as assertAllDefined } from './types-371cc315.js';
41
43
  import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
42
44
  import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
43
- import { I as IntervalCounter } from './async-9ffe4d42.js';
45
+ import { I as IntervalCounter } from './async-c7fd4178.js';
44
46
  import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
45
47
  import { Widget } from 'monaco-editor/esm/vs/base/browser/ui/widget.js';
46
48
  import { isMacintosh, isWindows, isLinux } from 'monaco-editor/esm/vs/base/common/platform.js';
@@ -50,6 +52,7 @@ import Severity$1 from 'monaco-editor/esm/vs/base/common/severity.js';
50
52
  import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
51
53
  import { IDialogService } from 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
52
54
  import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
55
+ import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
53
56
  import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
54
57
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
55
58
  import 'monaco-editor/esm/vs/base/common/buffer.js';
@@ -57,6 +60,8 @@ import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
57
60
  import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
58
61
  import 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
59
62
  import 'monaco-editor/esm/vs/editor/common/languages.js';
63
+ import 'monaco-editor/esm/vs/platform/registry/common/platform.js';
64
+ import 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
60
65
  import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
61
66
  import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
62
67
  import 'monaco-editor/esm/vs/platform/label/common/label.js';
@@ -69,10 +74,10 @@ import 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
69
74
  import 'monaco-editor/esm/vs/base/common/path.js';
70
75
  import 'monaco-editor/esm/vs/base/common/linkedList.js';
71
76
  import 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
77
+ import 'monaco-editor/esm/vs/base/common/map.js';
72
78
  import 'monaco-editor/esm/vs/base/common/stopwatch.js';
73
79
  import 'monaco-editor/esm/vs/base/common/cancellation.js';
74
80
  import 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
75
- import 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
76
81
  import 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
77
82
  import 'monaco-editor/esm/vs/editor/common/services/editorWorker.js';
78
83
  import 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
@@ -3416,7 +3421,7 @@ class DialogService extends Disposable {
3416
3421
  await handle.result;
3417
3422
  }
3418
3423
  }
3419
- class LayoutService {
3424
+ let LayoutService = class LayoutService {
3420
3425
  constructor(container, _codeEditorService) {
3421
3426
  this.container = container;
3422
3427
  this._codeEditorService = _codeEditorService;
@@ -3439,7 +3444,10 @@ class LayoutService {
3439
3444
  focus() {
3440
3445
  this._codeEditorService.getFocusedCodeEditor()?.focus();
3441
3446
  }
3442
- }
3447
+ };
3448
+ LayoutService = __decorate([
3449
+ __param(1, ICodeEditorService)
3450
+ ], LayoutService);
3443
3451
  function register(container) {
3444
3452
  container.classList.add('monaco-workbench');
3445
3453
  const model = StandaloneServices.get(INotificationService).model;
@@ -1,6 +1,7 @@
1
1
  import { VSBuffer as VSBuffer$1 } from 'monaco-editor/esm/vs/base/common/buffer.js';
2
+ import { toDisposable, DisposableStore, Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
3
+ import { onUnexpectedError } from 'monaco-editor/esm/vs/base/common/errors.js';
2
4
  import { Themable as Themable$1 } from 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
3
- import { Disposable } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
5
  import { ProgressBar as ProgressBar$1 } from 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
5
6
  import { mixin } from 'monaco-editor/esm/vs/base/common/objects.js';
6
7
  import { RunOnceScheduler } from 'monaco-editor/esm/vs/base/common/async.js';
@@ -13,7 +14,9 @@ import { firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
13
14
  import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
14
15
  import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
15
16
  import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
16
- import { N as NoOpNotification$1, l as IEditorService, o as IPaneCompositePartService, h as IUriIdentityService, e as ITextFileService, f as IFileService, n as IEditorGroupsService, g as IWorkbenchEnvironmentService, i as IWorkingCopyFileService, j as IPathService, I as IProgressService, t as Services, p as IProductService, q as ILanguageStatusService, s as IHostService } from './services-621e567e.js';
17
+ import { N as NoOpNotification$1, k as IEditorService, n as IPaneCompositePartService, g as IUriIdentityService, b as ITextFileService, e as IFileService, l as IEditorGroupsService, f as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, i as IPathService, I as IProgressService, s as Services, o as IProductService, p as ILanguageStatusService, q as IHostService } from './services-9299c4ca.js';
18
+ import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
19
+ import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
17
20
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
18
21
  import { QuickInputController } from 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
19
22
  import { getSingletonServiceDescriptors, registerSingleton } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
@@ -26,6 +29,331 @@ import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
26
29
  import { LanguageFeatureRegistry } from 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
27
30
  import { compare } from 'monaco-editor/esm/vs/base/common/strings.js';
28
31
  import { DomEmitter } from 'monaco-editor/esm/vs/base/browser/event.js';
32
+ function isReadableStream(obj) {
33
+ const candidate = obj;
34
+ if (!candidate) {
35
+ return false;
36
+ }
37
+ return [candidate.on, candidate.pause, candidate.resume, candidate.destroy].every(fn => typeof fn === 'function');
38
+ }
39
+ function isReadableBufferedStream(obj) {
40
+ const candidate = obj;
41
+ if (!candidate) {
42
+ return false;
43
+ }
44
+ return isReadableStream(candidate.stream) && Array.isArray(candidate.buffer) && typeof candidate.ended === 'boolean';
45
+ }
46
+ function newWriteableStream(reducer, options) {
47
+ return (
48
+ new WriteableStreamImpl(reducer, options)
49
+ );
50
+ }
51
+ class WriteableStreamImpl {
52
+ constructor(reducer, options) {
53
+ this.reducer = reducer;
54
+ this.options = options;
55
+ this.state = {
56
+ flowing: false,
57
+ ended: false,
58
+ destroyed: false
59
+ };
60
+ this.buffer = {
61
+ data: [],
62
+ error: []
63
+ };
64
+ this.listeners = {
65
+ data: [],
66
+ error: [],
67
+ end: []
68
+ };
69
+ this.pendingWritePromises = [];
70
+ }
71
+ pause() {
72
+ if (this.state.destroyed) {
73
+ return;
74
+ }
75
+ this.state.flowing = false;
76
+ }
77
+ resume() {
78
+ if (this.state.destroyed) {
79
+ return;
80
+ }
81
+ if (!this.state.flowing) {
82
+ this.state.flowing = true;
83
+ this.flowData();
84
+ this.flowErrors();
85
+ this.flowEnd();
86
+ }
87
+ }
88
+ write(data) {
89
+ if (this.state.destroyed) {
90
+ return;
91
+ }
92
+ if (this.state.flowing) {
93
+ this.emitData(data);
94
+ }
95
+ else {
96
+ this.buffer.data.push(data);
97
+ if (typeof this.options?.highWaterMark === 'number' && this.buffer.data.length > this.options.highWaterMark) {
98
+ return (
99
+ new Promise(resolve => this.pendingWritePromises.push(resolve))
100
+ );
101
+ }
102
+ }
103
+ }
104
+ error(error) {
105
+ if (this.state.destroyed) {
106
+ return;
107
+ }
108
+ if (this.state.flowing) {
109
+ this.emitError(error);
110
+ }
111
+ else {
112
+ this.buffer.error.push(error);
113
+ }
114
+ }
115
+ end(result) {
116
+ if (this.state.destroyed) {
117
+ return;
118
+ }
119
+ if (typeof result !== 'undefined') {
120
+ this.write(result);
121
+ }
122
+ if (this.state.flowing) {
123
+ this.emitEnd();
124
+ this.destroy();
125
+ }
126
+ else {
127
+ this.state.ended = true;
128
+ }
129
+ }
130
+ emitData(data) {
131
+ this.listeners.data.slice(0).forEach(listener => listener(data));
132
+ }
133
+ emitError(error) {
134
+ if (this.listeners.error.length === 0) {
135
+ onUnexpectedError(error);
136
+ }
137
+ else {
138
+ this.listeners.error.slice(0).forEach(listener => listener(error));
139
+ }
140
+ }
141
+ emitEnd() {
142
+ this.listeners.end.slice(0).forEach(listener => listener());
143
+ }
144
+ on(event, callback) {
145
+ if (this.state.destroyed) {
146
+ return;
147
+ }
148
+ switch (event) {
149
+ case 'data':
150
+ this.listeners.data.push(callback);
151
+ this.resume();
152
+ break;
153
+ case 'end':
154
+ this.listeners.end.push(callback);
155
+ if (this.state.flowing && this.flowEnd()) {
156
+ this.destroy();
157
+ }
158
+ break;
159
+ case 'error':
160
+ this.listeners.error.push(callback);
161
+ if (this.state.flowing) {
162
+ this.flowErrors();
163
+ }
164
+ break;
165
+ }
166
+ }
167
+ removeListener(event, callback) {
168
+ if (this.state.destroyed) {
169
+ return;
170
+ }
171
+ let listeners = undefined;
172
+ switch (event) {
173
+ case 'data':
174
+ listeners = this.listeners.data;
175
+ break;
176
+ case 'end':
177
+ listeners = this.listeners.end;
178
+ break;
179
+ case 'error':
180
+ listeners = this.listeners.error;
181
+ break;
182
+ }
183
+ if (listeners) {
184
+ const index = listeners.indexOf(callback);
185
+ if (index >= 0) {
186
+ listeners.splice(index, 1);
187
+ }
188
+ }
189
+ }
190
+ flowData() {
191
+ if (this.buffer.data.length > 0) {
192
+ const fullDataBuffer = this.reducer(this.buffer.data);
193
+ this.emitData(fullDataBuffer);
194
+ this.buffer.data.length = 0;
195
+ const pendingWritePromises = [...this.pendingWritePromises];
196
+ this.pendingWritePromises.length = 0;
197
+ pendingWritePromises.forEach(pendingWritePromise => pendingWritePromise());
198
+ }
199
+ }
200
+ flowErrors() {
201
+ if (this.listeners.error.length > 0) {
202
+ for (const error of this.buffer.error) {
203
+ this.emitError(error);
204
+ }
205
+ this.buffer.error.length = 0;
206
+ }
207
+ }
208
+ flowEnd() {
209
+ if (this.state.ended) {
210
+ this.emitEnd();
211
+ return this.listeners.end.length > 0;
212
+ }
213
+ return false;
214
+ }
215
+ destroy() {
216
+ if (!this.state.destroyed) {
217
+ this.state.destroyed = true;
218
+ this.state.ended = true;
219
+ this.buffer.data.length = 0;
220
+ this.buffer.error.length = 0;
221
+ this.listeners.data.length = 0;
222
+ this.listeners.error.length = 0;
223
+ this.listeners.end.length = 0;
224
+ this.pendingWritePromises.length = 0;
225
+ }
226
+ }
227
+ }
228
+ function consumeReadable(readable, reducer) {
229
+ const chunks = [];
230
+ let chunk;
231
+ while ((chunk = readable.read()) !== null) {
232
+ chunks.push(chunk);
233
+ }
234
+ return reducer(chunks);
235
+ }
236
+ function peekReadable(readable, reducer, maxChunks) {
237
+ const chunks = [];
238
+ let chunk = undefined;
239
+ while ((chunk = readable.read()) !== null && chunks.length < maxChunks) {
240
+ chunks.push(chunk);
241
+ }
242
+ if (chunk === null && chunks.length > 0) {
243
+ return reducer(chunks);
244
+ }
245
+ return {
246
+ read: () => {
247
+ if (chunks.length > 0) {
248
+ return chunks.shift();
249
+ }
250
+ if (typeof chunk !== 'undefined') {
251
+ const lastReadChunk = chunk;
252
+ chunk = undefined;
253
+ return lastReadChunk;
254
+ }
255
+ return readable.read();
256
+ }
257
+ };
258
+ }
259
+ function consumeStream(stream, reducer) {
260
+ return (
261
+ new Promise((resolve, reject) => {
262
+ const chunks = [];
263
+ listenStream(stream, {
264
+ onData: chunk => {
265
+ if (reducer) {
266
+ chunks.push(chunk);
267
+ }
268
+ },
269
+ onError: error => {
270
+ if (reducer) {
271
+ reject(error);
272
+ }
273
+ else {
274
+ resolve(undefined);
275
+ }
276
+ },
277
+ onEnd: () => {
278
+ if (reducer) {
279
+ resolve(reducer(chunks));
280
+ }
281
+ else {
282
+ resolve(undefined);
283
+ }
284
+ }
285
+ });
286
+ })
287
+ );
288
+ }
289
+ function listenStream(stream, listener) {
290
+ let destroyed = false;
291
+ stream.on('error', error => {
292
+ if (!destroyed) {
293
+ listener.onError(error);
294
+ }
295
+ });
296
+ stream.on('end', () => {
297
+ if (!destroyed) {
298
+ listener.onEnd();
299
+ }
300
+ });
301
+ stream.on('data', data => {
302
+ if (!destroyed) {
303
+ listener.onData(data);
304
+ }
305
+ });
306
+ return toDisposable(() => destroyed = true);
307
+ }
308
+ function peekStream(stream, maxChunks) {
309
+ return (
310
+ new Promise((resolve, reject) => {
311
+ const streamListeners = new DisposableStore();
312
+ const buffer = [];
313
+ const dataListener = (chunk) => {
314
+ buffer.push(chunk);
315
+ if (buffer.length > maxChunks) {
316
+ streamListeners.dispose();
317
+ stream.pause();
318
+ return resolve({ stream, buffer, ended: false });
319
+ }
320
+ };
321
+ const errorListener = (error) => {
322
+ return reject(error);
323
+ };
324
+ const endListener = () => {
325
+ return resolve({ stream, buffer, ended: true });
326
+ };
327
+ streamListeners.add(toDisposable(() => stream.removeListener('error', errorListener)));
328
+ stream.on('error', errorListener);
329
+ streamListeners.add(toDisposable(() => stream.removeListener('end', endListener)));
330
+ stream.on('end', endListener);
331
+ streamListeners.add(toDisposable(() => stream.removeListener('data', dataListener)));
332
+ stream.on('data', dataListener);
333
+ })
334
+ );
335
+ }
336
+ function toReadable(t) {
337
+ let consumed = false;
338
+ return {
339
+ read: () => {
340
+ if (consumed) {
341
+ return null;
342
+ }
343
+ consumed = true;
344
+ return t;
345
+ }
346
+ };
347
+ }
348
+ function transform(stream, transformer, reducer) {
349
+ const target = newWriteableStream(reducer);
350
+ listenStream(stream, {
351
+ onData: data => target.write(transformer.data(data)),
352
+ onError: error => target.error(transformer.error ? transformer.error(error) : error),
353
+ onEnd: () => target.end()
354
+ });
355
+ return target;
356
+ }
29
357
  const hasBuffer = (typeof Buffer !== 'undefined');
30
358
  let textEncoder;
31
359
  let textDecoder;
@@ -186,6 +514,27 @@ function readUInt8(source, offset) {
186
514
  function writeUInt8(destination, value, offset) {
187
515
  destination[offset] = value;
188
516
  }
517
+ function readableToBuffer(readable) {
518
+ return consumeReadable(readable, chunks => VSBuffer.concat(chunks));
519
+ }
520
+ function bufferToReadable(buffer) {
521
+ return toReadable(buffer);
522
+ }
523
+ function streamToBuffer(stream) {
524
+ return consumeStream(stream, chunks => VSBuffer.concat(chunks));
525
+ }
526
+ async function bufferedStreamToBuffer(bufferedStream) {
527
+ if (bufferedStream.ended) {
528
+ return VSBuffer.concat(bufferedStream.buffer);
529
+ }
530
+ return VSBuffer.concat([
531
+ ...bufferedStream.buffer,
532
+ await streamToBuffer(bufferedStream.stream)
533
+ ]);
534
+ }
535
+ function newWriteableBufferStream(options) {
536
+ return newWriteableStream(chunks => VSBuffer.concat(chunks), options);
537
+ }
189
538
  const Emitter = monaco.Emitter;
190
539
  class Themable extends Disposable {
191
540
  constructor(themeService) {
@@ -208,32 +557,6 @@ class Themable extends Disposable {
208
557
  return color ? color.toString() : null;
209
558
  }
210
559
  }
211
- function isString(str) {
212
- return (typeof str === 'string');
213
- }
214
- function isStringArray(value) {
215
- return Array.isArray(value) && value.every(elem => isString(elem));
216
- }
217
- function isUndefined(obj) {
218
- return (typeof obj === 'undefined');
219
- }
220
- function isUndefinedOrNull(obj) {
221
- return (isUndefined(obj) || obj === null);
222
- }
223
- function assertAllDefined(...args) {
224
- const result = [];
225
- for (let i = 0; i < args.length; i++) {
226
- const arg = args[i];
227
- if (isUndefinedOrNull(arg)) {
228
- throw new Error(`Assertion Failed: argument at index ${i} is undefined or null`);
229
- }
230
- result.push(arg);
231
- }
232
- return result;
233
- }
234
- function withUndefinedAsNull(x) {
235
- return typeof x === 'undefined' ? null : x;
236
- }
237
560
  const CSS_DONE = 'done';
238
561
  const CSS_ACTIVE = 'active';
239
562
  const CSS_INFINITE = 'infinite';
@@ -504,6 +827,8 @@ class LanguageSelection {
504
827
  }
505
828
  }
506
829
  var _a, _b, _c, _d, _e;
830
+ const configurationRegistry = Registry.as(Extensions.Configuration);
831
+ configurationRegistry.onDidUpdateConfiguration ?? (configurationRegistry.onDidUpdateConfiguration = configurationRegistry._onDidUpdateConfiguration.event);
507
832
  (_a = NoOpNotification.prototype).onDidClose ?? (_a.onDidClose = Event.None);
508
833
  for (const key of Object.getOwnPropertyNames(NoOpNotification$1.prototype)) {
509
834
  if (!Object.hasOwnProperty.call(NoOpNotification.prototype, key)) {
@@ -538,8 +863,9 @@ function toMonacoVSBuffer(value) {
538
863
  }
539
864
  for (const key of Object.getOwnPropertyNames(VSBuffer)) {
540
865
  if (!Object.hasOwnProperty.call(VSBuffer$1, key)) {
541
- VSBuffer$1[key] = function (...args) {
542
- return toMonacoVSBuffer(VSBuffer[key].call(VSBuffer$1, ...args.map(toVSCodeVSBuffer)));
866
+ const method = VSBuffer[key];
867
+ VSBuffer[key] = VSBuffer$1[key] = function (...args) {
868
+ return toMonacoVSBuffer(method.call(VSBuffer$1, ...args.map(toVSCodeVSBuffer)));
543
869
  };
544
870
  }
545
871
  }
@@ -956,4 +1282,4 @@ registerSingleton(ILanguageDetectionService, class LanguageDetectionService {
956
1282
  return undefined;
957
1283
  }
958
1284
  });
959
- export { Emitter as E, ILifecycleService as I, assertAllDefined as a, ILanguageDetectionService as b, isStringArray as i, unsupported as u, withUndefinedAsNull as w };
1285
+ export { Emitter as E, ILifecycleService as I, ILanguageDetectionService as a, peekReadable as b, bufferToReadable as c, consumeStream as d, isReadableBufferedStream as e, bufferedStreamToBuffer as f, newWriteableStream as g, isReadableStream as i, listenStream as l, newWriteableBufferStream as n, peekStream as p, readableToBuffer as r, streamToBuffer as s, transform as t, unsupported as u };
@@ -148,9 +148,7 @@ interface IEditorOptions {
148
148
  viewState?: object;
149
149
  }
150
150
 
151
- interface IEditorOverrideServices {
152
- [index: string]: any;
153
- }
151
+ type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
154
152
 
155
153
  declare type OpenEditor = (model: ITextModel, options: IEditorOptions | undefined, sideBySide?: boolean) => Promise<ICodeEditor | undefined>;
156
154
  declare function getServiceOverride(openEditor: OpenEditor): IEditorOverrideServices;
@@ -1,12 +1,14 @@
1
- import { b as __decorate, d as __param, f as IFileService, h as IUriIdentityService, e as ITextFileService, S as SIDE_GROUP, A as ACTIVE_GROUP, l as IEditorService, z as isPreferredGroup } from './services-621e567e.js';
2
- import { E as Emitter, w as withUndefinedAsNull, b as ILanguageDetectionService, u as unsupported } from './missing-services-0f9c8f22.js';
1
+ import { b as __decorate, c as __param } from './tslib.es6-16b40665.js';
2
+ import { E as Emitter, a as ILanguageDetectionService, u as unsupported } from './missing-services-597951f0.js';
3
3
  import { Disposable, MutableDisposable, dispose, toDisposable, ImmortalReference } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
4
+ import { w as withUndefinedAsNull } from './types-371cc315.js';
4
5
  import { ThrottledDelayer } from 'monaco-editor/esm/vs/base/common/async.js';
5
6
  import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
6
7
  import { localize } from 'monaco-editor/esm/vs/nls.js';
7
8
  import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
8
9
  import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
9
10
  import { IAccessibilityService } from 'monaco-editor/esm/vs/platform/accessibility/common/accessibility.js';
11
+ import { e as IFileService, g as IUriIdentityService, b as ITextFileService, S as SIDE_GROUP, A as ACTIVE_GROUP, k as IEditorService, y as isPreferredGroup } from './services-9299c4ca.js';
10
12
  import { MultiModelEditStackElement } from 'monaco-editor/esm/vs/editor/common/model/editStack.js';
11
13
  import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
12
14
  import { IUndoRedoService } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
@@ -24,18 +26,36 @@ import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/comm
24
26
  import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
25
27
  import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
26
28
  import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
29
+ import 'monaco-editor/esm/vs/base/common/buffer.js';
30
+ import 'monaco-editor/esm/vs/base/common/errors.js';
31
+ import 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
32
+ import 'monaco-editor/esm/vs/base/common/objects.js';
33
+ import 'monaco-editor/esm/vs/base/common/types.js';
34
+ import 'monaco-editor/esm/vs/base/common/color.js';
35
+ import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
36
+ import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
37
+ import 'monaco-editor/esm/vs/base/common/arrays.js';
38
+ import 'monaco-editor/esm/vs/editor/common/languages.js';
39
+ import 'monaco-editor/esm/vs/platform/notification/common/notification.js';
40
+ import 'monaco-editor/esm/vs/platform/registry/common/platform.js';
41
+ import 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
42
+ import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
43
+ import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
44
+ import 'monaco-editor/esm/vs/platform/label/common/label.js';
45
+ import 'monaco-editor/esm/vs/editor/editor.api.js';
46
+ import 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
47
+ import 'monaco-editor/esm/vs/base/common/strings.js';
48
+ import 'monaco-editor/esm/vs/base/browser/event.js';
27
49
  import 'monaco-editor/esm/vs/platform/environment/common/environment.js';
28
50
  import 'monaco-editor/esm/vs/base/common/platform.js';
29
51
  import 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
30
52
  import 'monaco-editor/esm/vs/base/common/path.js';
31
53
  import 'monaco-editor/esm/vs/base/common/linkedList.js';
32
54
  import 'monaco-editor/esm/vs/platform/log/common/log.js';
33
- import 'monaco-editor/esm/vs/editor/editor.api.js';
34
- import 'monaco-editor/esm/vs/base/common/errors.js';
55
+ import 'monaco-editor/esm/vs/base/common/map.js';
35
56
  import 'monaco-editor/esm/vs/base/common/stopwatch.js';
36
57
  import 'monaco-editor/esm/vs/base/common/cancellation.js';
37
58
  import 'monaco-editor/esm/vs/platform/commands/common/commands.js';
38
- import 'monaco-editor/esm/vs/platform/notification/common/notification.js';
39
59
  import 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
40
60
  import 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
41
61
  import 'monaco-editor/esm/vs/editor/common/services/editorWorker.js';
@@ -47,21 +67,6 @@ import 'monaco-editor/esm/vs/platform/opener/common/opener.js';
47
67
  import 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
48
68
  import 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
49
69
  import 'monaco-editor/esm/vs/base/common/severity.js';
50
- import 'monaco-editor/esm/vs/base/common/buffer.js';
51
- import 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
52
- import 'monaco-editor/esm/vs/base/common/objects.js';
53
- import 'monaco-editor/esm/vs/base/common/types.js';
54
- import 'monaco-editor/esm/vs/base/common/color.js';
55
- import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
56
- import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
57
- import 'monaco-editor/esm/vs/base/common/arrays.js';
58
- import 'monaco-editor/esm/vs/editor/common/languages.js';
59
- import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
60
- import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
61
- import 'monaco-editor/esm/vs/platform/label/common/label.js';
62
- import 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
63
- import 'monaco-editor/esm/vs/base/common/strings.js';
64
- import 'monaco-editor/esm/vs/base/browser/event.js';
65
70
  class ReferenceCollection {
66
71
  constructor() {
67
72
  this.references = new Map();