@codingame/monaco-vscode-api 1.67.16 → 1.67.19
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 +45 -2
- package/dist/api.js +69 -68
- package/dist/{async-f842d13c.js → async-c36a786b.js} +1 -1
- package/dist/configuration.d.ts +248 -2
- package/dist/configuration.js +125 -9
- package/dist/messages.js +18 -17
- package/dist/{missing-services-8687ea11.js → missing-services-c84f89c2.js} +21 -7
- package/dist/modelEditor.js +23 -22
- package/dist/monaco.d.ts +2683 -0
- package/dist/monaco.js +149 -0
- package/dist/position-291dfe99.js +3 -0
- package/dist/{services-7a462d46.js → services-9299c4ca.js} +2 -21
- package/dist/services.js +2 -1
- package/dist/tslib.es6-16b40665.js +21 -0
- package/package.json +8 -1
package/dist/configuration.d.ts
CHANGED
|
@@ -285,8 +285,254 @@ interface UriComponents {
|
|
|
285
285
|
fragment: string;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
+
declare type JSONSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'null' | 'array' | 'object';
|
|
289
|
+
interface IJSONSchema {
|
|
290
|
+
id?: string;
|
|
291
|
+
$id?: string;
|
|
292
|
+
$schema?: string;
|
|
293
|
+
type?: JSONSchemaType | JSONSchemaType[];
|
|
294
|
+
title?: string;
|
|
295
|
+
default?: any;
|
|
296
|
+
definitions?: IJSONSchemaMap;
|
|
297
|
+
description?: string;
|
|
298
|
+
properties?: IJSONSchemaMap;
|
|
299
|
+
patternProperties?: IJSONSchemaMap;
|
|
300
|
+
additionalProperties?: boolean | IJSONSchema;
|
|
301
|
+
minProperties?: number;
|
|
302
|
+
maxProperties?: number;
|
|
303
|
+
dependencies?: IJSONSchemaMap | {
|
|
304
|
+
[prop: string]: string[];
|
|
305
|
+
};
|
|
306
|
+
items?: IJSONSchema | IJSONSchema[];
|
|
307
|
+
minItems?: number;
|
|
308
|
+
maxItems?: number;
|
|
309
|
+
uniqueItems?: boolean;
|
|
310
|
+
additionalItems?: boolean | IJSONSchema;
|
|
311
|
+
pattern?: string;
|
|
312
|
+
minLength?: number;
|
|
313
|
+
maxLength?: number;
|
|
314
|
+
minimum?: number;
|
|
315
|
+
maximum?: number;
|
|
316
|
+
exclusiveMinimum?: boolean | number;
|
|
317
|
+
exclusiveMaximum?: boolean | number;
|
|
318
|
+
multipleOf?: number;
|
|
319
|
+
required?: string[];
|
|
320
|
+
$ref?: string;
|
|
321
|
+
anyOf?: IJSONSchema[];
|
|
322
|
+
allOf?: IJSONSchema[];
|
|
323
|
+
oneOf?: IJSONSchema[];
|
|
324
|
+
not?: IJSONSchema;
|
|
325
|
+
enum?: any[];
|
|
326
|
+
format?: string;
|
|
327
|
+
const?: any;
|
|
328
|
+
contains?: IJSONSchema;
|
|
329
|
+
propertyNames?: IJSONSchema;
|
|
330
|
+
$comment?: string;
|
|
331
|
+
if?: IJSONSchema;
|
|
332
|
+
then?: IJSONSchema;
|
|
333
|
+
else?: IJSONSchema;
|
|
334
|
+
defaultSnippets?: IJSONSchemaSnippet[];
|
|
335
|
+
errorMessage?: string;
|
|
336
|
+
patternErrorMessage?: string;
|
|
337
|
+
deprecationMessage?: string;
|
|
338
|
+
markdownDeprecationMessage?: string;
|
|
339
|
+
enumDescriptions?: string[];
|
|
340
|
+
markdownEnumDescriptions?: string[];
|
|
341
|
+
markdownDescription?: string;
|
|
342
|
+
doNotSuggest?: boolean;
|
|
343
|
+
suggestSortText?: string;
|
|
344
|
+
allowComments?: boolean;
|
|
345
|
+
allowTrailingCommas?: boolean;
|
|
346
|
+
}
|
|
347
|
+
interface IJSONSchemaMap {
|
|
348
|
+
[name: string]: IJSONSchema;
|
|
349
|
+
}
|
|
350
|
+
interface IJSONSchemaSnippet {
|
|
351
|
+
label?: string;
|
|
352
|
+
description?: string;
|
|
353
|
+
body?: any;
|
|
354
|
+
bodyText?: string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* An interface for a JavaScript object that
|
|
359
|
+
* acts a dictionary. The keys are strings.
|
|
360
|
+
*/
|
|
361
|
+
declare type IStringDictionary<V> = Record<string, V>;
|
|
362
|
+
|
|
363
|
+
declare enum EditPresentationTypes {
|
|
364
|
+
Multiline = "multilineText",
|
|
365
|
+
Singleline = "singlelineText"
|
|
366
|
+
}
|
|
367
|
+
interface IConfigurationRegistry {
|
|
368
|
+
/**
|
|
369
|
+
* Register a configuration to the registry.
|
|
370
|
+
*/
|
|
371
|
+
registerConfiguration(configuration: IConfigurationNode): void;
|
|
372
|
+
/**
|
|
373
|
+
* Register multiple configurations to the registry.
|
|
374
|
+
*/
|
|
375
|
+
registerConfigurations(configurations: IConfigurationNode[], validate?: boolean): void;
|
|
376
|
+
/**
|
|
377
|
+
* Deregister multiple configurations from the registry.
|
|
378
|
+
*/
|
|
379
|
+
deregisterConfigurations(configurations: IConfigurationNode[]): void;
|
|
380
|
+
/**
|
|
381
|
+
* update the configuration registry by
|
|
382
|
+
* - registering the configurations to add
|
|
383
|
+
* - dereigstering the configurations to remove
|
|
384
|
+
*/
|
|
385
|
+
updateConfigurations(configurations: {
|
|
386
|
+
add: IConfigurationNode[];
|
|
387
|
+
remove: IConfigurationNode[];
|
|
388
|
+
}): void;
|
|
389
|
+
/**
|
|
390
|
+
* Register multiple default configurations to the registry.
|
|
391
|
+
*/
|
|
392
|
+
registerDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void;
|
|
393
|
+
/**
|
|
394
|
+
* Deregister multiple default configurations from the registry.
|
|
395
|
+
*/
|
|
396
|
+
deregisterDefaultConfigurations(defaultConfigurations: IConfigurationDefaults[]): void;
|
|
397
|
+
/**
|
|
398
|
+
* Return the registered configuration defaults overrides
|
|
399
|
+
*/
|
|
400
|
+
getConfigurationDefaultsOverrides(): Map<string, IConfigurationDefaultOverride>;
|
|
401
|
+
/**
|
|
402
|
+
* Signal that the schema of a configuration setting has changes. It is currently only supported to change enumeration values.
|
|
403
|
+
* Property or default value changes are not allowed.
|
|
404
|
+
*/
|
|
405
|
+
notifyConfigurationSchemaUpdated(...configurations: IConfigurationNode[]): void;
|
|
406
|
+
/**
|
|
407
|
+
* Event that fires whenever a configuration has been
|
|
408
|
+
* registered.
|
|
409
|
+
*/
|
|
410
|
+
readonly onDidSchemaChange: Event<void>;
|
|
411
|
+
/**
|
|
412
|
+
* Event that fires whenever a configuration has been
|
|
413
|
+
* registered.
|
|
414
|
+
*/
|
|
415
|
+
readonly onDidUpdateConfiguration: Event<{
|
|
416
|
+
properties: string[];
|
|
417
|
+
defaultsOverrides?: boolean;
|
|
418
|
+
}>;
|
|
419
|
+
/**
|
|
420
|
+
* Returns all configuration nodes contributed to this registry.
|
|
421
|
+
*/
|
|
422
|
+
getConfigurations(): IConfigurationNode[];
|
|
423
|
+
/**
|
|
424
|
+
* Returns all configurations settings of all configuration nodes contributed to this registry.
|
|
425
|
+
*/
|
|
426
|
+
getConfigurationProperties(): IStringDictionary<IRegisteredConfigurationPropertySchema>;
|
|
427
|
+
/**
|
|
428
|
+
* Returns all excluded configurations settings of all configuration nodes contributed to this registry.
|
|
429
|
+
*/
|
|
430
|
+
getExcludedConfigurationProperties(): IStringDictionary<IRegisteredConfigurationPropertySchema>;
|
|
431
|
+
/**
|
|
432
|
+
* Register the identifiers for editor configurations
|
|
433
|
+
*/
|
|
434
|
+
registerOverrideIdentifiers(identifiers: string[]): void;
|
|
435
|
+
}
|
|
436
|
+
declare const enum ConfigurationScope {
|
|
437
|
+
/**
|
|
438
|
+
* Application specific configuration, which can be configured only in local user settings.
|
|
439
|
+
*/
|
|
440
|
+
APPLICATION = 1,
|
|
441
|
+
/**
|
|
442
|
+
* Machine specific configuration, which can be configured only in local and remote user settings.
|
|
443
|
+
*/
|
|
444
|
+
MACHINE = 2,
|
|
445
|
+
/**
|
|
446
|
+
* Window specific configuration, which can be configured in the user or workspace settings.
|
|
447
|
+
*/
|
|
448
|
+
WINDOW = 3,
|
|
449
|
+
/**
|
|
450
|
+
* Resource specific configuration, which can be configured in the user, workspace or folder settings.
|
|
451
|
+
*/
|
|
452
|
+
RESOURCE = 4,
|
|
453
|
+
/**
|
|
454
|
+
* Resource specific configuration that can be configured in language specific settings
|
|
455
|
+
*/
|
|
456
|
+
LANGUAGE_OVERRIDABLE = 5,
|
|
457
|
+
/**
|
|
458
|
+
* Machine specific configuration that can also be configured in workspace or folder settings.
|
|
459
|
+
*/
|
|
460
|
+
MACHINE_OVERRIDABLE = 6
|
|
461
|
+
}
|
|
462
|
+
interface IConfigurationPropertySchema extends IJSONSchema {
|
|
463
|
+
scope?: ConfigurationScope;
|
|
464
|
+
/**
|
|
465
|
+
* When restricted, value of this configuration will be read only from trusted sources.
|
|
466
|
+
* For eg., If the workspace is not trusted, then the value of this configuration is not read from workspace settings file.
|
|
467
|
+
*/
|
|
468
|
+
restricted?: boolean;
|
|
469
|
+
/**
|
|
470
|
+
* When `false` this property is excluded from the registry. Default is to include.
|
|
471
|
+
*/
|
|
472
|
+
included?: boolean;
|
|
473
|
+
/**
|
|
474
|
+
* List of tags associated to the property.
|
|
475
|
+
* - A tag can be used for filtering
|
|
476
|
+
* - Use `experimental` tag for marking the setting as experimental. **Note:** Defaults of experimental settings can be changed by the running experiments.
|
|
477
|
+
*/
|
|
478
|
+
tags?: string[];
|
|
479
|
+
/**
|
|
480
|
+
* When enabled this setting is ignored during sync and user can override this.
|
|
481
|
+
*/
|
|
482
|
+
ignoreSync?: boolean;
|
|
483
|
+
/**
|
|
484
|
+
* When enabled this setting is ignored during sync and user cannot override this.
|
|
485
|
+
*/
|
|
486
|
+
disallowSyncIgnore?: boolean;
|
|
487
|
+
/**
|
|
488
|
+
* Labels for enumeration items
|
|
489
|
+
*/
|
|
490
|
+
enumItemLabels?: string[];
|
|
491
|
+
/**
|
|
492
|
+
* When specified, controls the presentation format of string settings.
|
|
493
|
+
* Otherwise, the presentation format defaults to `singleline`.
|
|
494
|
+
*/
|
|
495
|
+
editPresentation?: EditPresentationTypes;
|
|
496
|
+
/**
|
|
497
|
+
* When specified, gives an order number for the setting
|
|
498
|
+
* within the settings editor. Otherwise, the setting is placed at the end.
|
|
499
|
+
*/
|
|
500
|
+
order?: number;
|
|
501
|
+
}
|
|
502
|
+
interface IExtensionInfo {
|
|
503
|
+
id: string;
|
|
504
|
+
displayName?: string;
|
|
505
|
+
}
|
|
506
|
+
interface IConfigurationNode {
|
|
507
|
+
id?: string;
|
|
508
|
+
order?: number;
|
|
509
|
+
type?: string | string[];
|
|
510
|
+
title?: string;
|
|
511
|
+
description?: string;
|
|
512
|
+
properties?: IStringDictionary<IConfigurationPropertySchema>;
|
|
513
|
+
allOf?: IConfigurationNode[];
|
|
514
|
+
scope?: ConfigurationScope;
|
|
515
|
+
extensionInfo?: IExtensionInfo;
|
|
516
|
+
restrictedProperties?: string[];
|
|
517
|
+
}
|
|
518
|
+
interface IConfigurationDefaults {
|
|
519
|
+
overrides: IStringDictionary<any>;
|
|
520
|
+
source?: IExtensionInfo | string;
|
|
521
|
+
}
|
|
522
|
+
declare type IRegisteredConfigurationPropertySchema = IConfigurationPropertySchema & {
|
|
523
|
+
defaultDefaultValue?: any;
|
|
524
|
+
source?: IExtensionInfo;
|
|
525
|
+
defaultValueSource?: IExtensionInfo | string;
|
|
526
|
+
};
|
|
527
|
+
declare type IConfigurationDefaultOverride = {
|
|
528
|
+
value: any;
|
|
529
|
+
source?: IExtensionInfo | string;
|
|
530
|
+
};
|
|
531
|
+
|
|
288
532
|
type IEditorOverrideServices = monaco.editor.IEditorOverrideServices
|
|
289
533
|
|
|
290
|
-
declare function
|
|
534
|
+
declare function updateUserConfiguration(configurationJson: string): void;
|
|
535
|
+
declare const configurationRegistry: IConfigurationRegistry;
|
|
536
|
+
declare function getServiceOverride(settingsResource?: URI): IEditorOverrideServices;
|
|
291
537
|
|
|
292
|
-
export { getServiceOverride as default };
|
|
538
|
+
export { configurationRegistry, getServiceOverride as default, updateUserConfiguration };
|
package/dist/configuration.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as Emitter, i as isReadableStream, p as peekStream, b as peekReadable, c as bufferToReadable, s as streamToBuffer, d as consumeStream, t as transform, e as isReadableBufferedStream, l as listenStream, f as bufferedStreamToBuffer, r as readableToBuffer, n as newWriteableBufferStream, g as newWriteableStream, u as unsupported } from './missing-services-
|
|
1
|
+
import { E as Emitter, i as isReadableStream, p as peekStream, b as peekReadable, c as bufferToReadable, s as streamToBuffer, d as consumeStream, t as transform, e as isReadableBufferedStream, l as listenStream, f as bufferedStreamToBuffer, r as readableToBuffer, n as newWriteableBufferStream, g as newWriteableStream, u as unsupported } from './missing-services-c84f89c2.js';
|
|
2
2
|
import { Disposable, toDisposable, dispose, DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
3
3
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
4
4
|
import { getConfigurationValue, addToValueTree, removeFromValueTree, toValuesTree, IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
@@ -11,18 +11,24 @@ import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
|
11
11
|
import { extUriBiasedIgnorePathCase, isAbsolutePath, extUri, extUriIgnorePathCase } from 'monaco-editor/esm/vs/base/common/resources.js';
|
|
12
12
|
import { Configuration, DefaultConfigurationModel, ConfigurationModel as ConfigurationModel$1, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
|
|
13
13
|
import { RunOnceScheduler, Promises } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
14
|
-
import {
|
|
14
|
+
import { b as __decorate, c as __param } from './tslib.es6-16b40665.js';
|
|
15
|
+
import { z as ensureFileSystemProviderError, B as createFileSystemProviderError, F as FileSystemProviderErrorCode, D as FileChangesEvent, E as FileOperationError, G as hasOpenReadWriteCloseCapability, H as hasReadWriteCapability, J as hasFileReadStreamCapability, K as toFileSystemProviderErrorCode, t as FileType, u as FilePermission, L as etag, M as FileOperationEvent, O as toFileOperationResult, P as ETAG_DISABLED, Q as hasFileAtomicReadCapability, R as NotModifiedSinceFileOperationError, T as hasFileFolderCopyCapability, C as CancellationTokenSource } from './services-9299c4ca.js';
|
|
15
16
|
import { VSBuffer } from 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
16
17
|
import { canceled } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
17
18
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
18
|
-
import { R as ResourceQueue } from './async-
|
|
19
|
+
import { R as ResourceQueue } from './async-c36a786b.js';
|
|
19
20
|
import { Iterable } from 'monaco-editor/esm/vs/base/common/iterator.js';
|
|
20
21
|
import { TernarySearchTree } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
21
22
|
import { hash } from 'monaco-editor/esm/vs/base/common/hash.js';
|
|
22
23
|
import { CancellationToken } from 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
23
24
|
import { Schemas } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
24
25
|
import { ILogService } from 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
26
|
+
import { P as Position } from './position-291dfe99.js';
|
|
27
|
+
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
28
|
+
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
25
29
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
30
|
+
import { ITextResourceConfigurationService } from 'monaco-editor/esm/vs/editor/common/services/textResourceConfiguration.js';
|
|
31
|
+
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
26
32
|
import 'monaco-editor/esm/vs/platform/theme/common/themeService.js';
|
|
27
33
|
import 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
|
|
28
34
|
import 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
@@ -49,11 +55,9 @@ import 'monaco-editor/esm/vs/base/common/stopwatch.js';
|
|
|
49
55
|
import 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
50
56
|
import 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
|
|
51
57
|
import 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
52
|
-
import 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
53
58
|
import 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
|
|
54
59
|
import 'monaco-editor/esm/vs/editor/common/services/editorWorker.js';
|
|
55
60
|
import 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
|
|
56
|
-
import 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
57
61
|
import 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
58
62
|
import 'monaco-editor/esm/vs/platform/clipboard/common/clipboardService.js';
|
|
59
63
|
import 'monaco-editor/esm/vs/platform/dialogs/common/dialogs.js';
|
|
@@ -2011,6 +2015,110 @@ let FileService = class FileService extends Disposable {
|
|
|
2011
2015
|
FileService = __decorate([
|
|
2012
2016
|
__param(0, ILogService)
|
|
2013
2017
|
], FileService);
|
|
2018
|
+
let TextResourceConfigurationService = class TextResourceConfigurationService extends Disposable {
|
|
2019
|
+
constructor(configurationService, modelService, languageService) {
|
|
2020
|
+
super();
|
|
2021
|
+
this.configurationService = configurationService;
|
|
2022
|
+
this.modelService = modelService;
|
|
2023
|
+
this.languageService = languageService;
|
|
2024
|
+
this._onDidChangeConfiguration = this._register( new Emitter());
|
|
2025
|
+
this.onDidChangeConfiguration = this._onDidChangeConfiguration.event;
|
|
2026
|
+
this._register(this.configurationService.onDidChangeConfiguration(e => this._onDidChangeConfiguration.fire(this.toResourceConfigurationChangeEvent(e))));
|
|
2027
|
+
}
|
|
2028
|
+
getValue(resource, arg2, arg3) {
|
|
2029
|
+
if (typeof arg3 === 'string') {
|
|
2030
|
+
return this._getValue(resource, Position.isIPosition(arg2) ? arg2 : null, arg3);
|
|
2031
|
+
}
|
|
2032
|
+
return this._getValue(resource, null, typeof arg2 === 'string' ? arg2 : undefined);
|
|
2033
|
+
}
|
|
2034
|
+
updateValue(resource, key, value, configurationTarget) {
|
|
2035
|
+
const language = this.getLanguage(resource, null);
|
|
2036
|
+
const configurationValue = this.configurationService.inspect(key, { resource, overrideIdentifier: language });
|
|
2037
|
+
if (configurationTarget === undefined) {
|
|
2038
|
+
configurationTarget = this.deriveConfigurationTarget(configurationValue, language);
|
|
2039
|
+
}
|
|
2040
|
+
switch (configurationTarget) {
|
|
2041
|
+
case 7 :
|
|
2042
|
+
return this._updateValue(key, value, configurationTarget, configurationValue.memory?.override, resource, language);
|
|
2043
|
+
case 5 :
|
|
2044
|
+
return this._updateValue(key, value, configurationTarget, configurationValue.workspaceFolder?.override, resource, language);
|
|
2045
|
+
case 4 :
|
|
2046
|
+
return this._updateValue(key, value, configurationTarget, configurationValue.workspace?.override, resource, language);
|
|
2047
|
+
case 3 :
|
|
2048
|
+
return this._updateValue(key, value, configurationTarget, configurationValue.userRemote?.override, resource, language);
|
|
2049
|
+
default:
|
|
2050
|
+
return this._updateValue(key, value, configurationTarget, configurationValue.userLocal?.override, resource, language);
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
_updateValue(key, value, configurationTarget, overriddenValue, resource, language) {
|
|
2054
|
+
if (language && overriddenValue !== undefined) {
|
|
2055
|
+
return this.configurationService.updateValue(key, value, { resource, overrideIdentifier: language }, configurationTarget);
|
|
2056
|
+
}
|
|
2057
|
+
else {
|
|
2058
|
+
return this.configurationService.updateValue(key, value, { resource }, configurationTarget);
|
|
2059
|
+
}
|
|
2060
|
+
}
|
|
2061
|
+
deriveConfigurationTarget(configurationValue, language) {
|
|
2062
|
+
if (language) {
|
|
2063
|
+
if (configurationValue.memory?.override !== undefined) {
|
|
2064
|
+
return 7 ;
|
|
2065
|
+
}
|
|
2066
|
+
if (configurationValue.workspaceFolder?.override !== undefined) {
|
|
2067
|
+
return 5 ;
|
|
2068
|
+
}
|
|
2069
|
+
if (configurationValue.workspace?.override !== undefined) {
|
|
2070
|
+
return 4 ;
|
|
2071
|
+
}
|
|
2072
|
+
if (configurationValue.userRemote?.override !== undefined) {
|
|
2073
|
+
return 3 ;
|
|
2074
|
+
}
|
|
2075
|
+
if (configurationValue.userLocal?.override !== undefined) {
|
|
2076
|
+
return 2 ;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
if (configurationValue.memory?.value !== undefined) {
|
|
2080
|
+
return 7 ;
|
|
2081
|
+
}
|
|
2082
|
+
if (configurationValue.workspaceFolder?.value !== undefined) {
|
|
2083
|
+
return 5 ;
|
|
2084
|
+
}
|
|
2085
|
+
if (configurationValue.workspace?.value !== undefined) {
|
|
2086
|
+
return 4 ;
|
|
2087
|
+
}
|
|
2088
|
+
if (configurationValue.userRemote?.value !== undefined) {
|
|
2089
|
+
return 3 ;
|
|
2090
|
+
}
|
|
2091
|
+
return 2 ;
|
|
2092
|
+
}
|
|
2093
|
+
_getValue(resource, position, section) {
|
|
2094
|
+
const language = resource ? this.getLanguage(resource, position) : undefined;
|
|
2095
|
+
if (typeof section === 'undefined') {
|
|
2096
|
+
return this.configurationService.getValue({ resource, overrideIdentifier: language });
|
|
2097
|
+
}
|
|
2098
|
+
return this.configurationService.getValue(section, { resource, overrideIdentifier: language });
|
|
2099
|
+
}
|
|
2100
|
+
getLanguage(resource, position) {
|
|
2101
|
+
const model = this.modelService.getModel(resource);
|
|
2102
|
+
if (model) {
|
|
2103
|
+
return position ? model.getLanguageIdAtPosition(position.lineNumber, position.column) : model.getLanguageId();
|
|
2104
|
+
}
|
|
2105
|
+
return this.languageService.guessLanguageIdByFilepathOrFirstLine(resource);
|
|
2106
|
+
}
|
|
2107
|
+
toResourceConfigurationChangeEvent(configurationChangeEvent) {
|
|
2108
|
+
return {
|
|
2109
|
+
affectedKeys: configurationChangeEvent.affectedKeys,
|
|
2110
|
+
affectsConfiguration: (resource, configuration) => {
|
|
2111
|
+
const overrideIdentifier = this.getLanguage(resource, null);
|
|
2112
|
+
return configurationChangeEvent.affectsConfiguration(configuration, { resource, overrideIdentifier });
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
TextResourceConfigurationService = __decorate([
|
|
2118
|
+
__param(0, IConfigurationService),
|
|
2119
|
+
__param(1, IModelService),
|
|
2120
|
+
__param(2, ILanguageService)
|
|
2121
|
+
], TextResourceConfigurationService);
|
|
2014
2122
|
function createConfigurationFileSystemProvider(settingsResource, readConfiguration, onChange) {
|
|
2015
2123
|
const onDidFilesChange = new Emitter();
|
|
2016
2124
|
onChange(() => {
|
|
@@ -2054,16 +2162,24 @@ function createConfigurationFileSystemProvider(settingsResource, readConfigurati
|
|
|
2054
2162
|
};
|
|
2055
2163
|
return provider;
|
|
2056
2164
|
}
|
|
2057
|
-
|
|
2165
|
+
let userConfigurationJson = '{}';
|
|
2166
|
+
const userConfigurationChangeEmitter = new Emitter();
|
|
2167
|
+
function updateUserConfiguration(configurationJson) {
|
|
2168
|
+
userConfigurationJson = configurationJson;
|
|
2169
|
+
userConfigurationChangeEmitter.fire(undefined);
|
|
2170
|
+
}
|
|
2171
|
+
const configurationRegistry = Registry.as(Extensions.Configuration);
|
|
2172
|
+
function getServiceOverride(settingsResource = URI.file('/userSettings.json')) {
|
|
2058
2173
|
const logService = StandaloneServices.get(ILogService);
|
|
2059
2174
|
const fileService = new FileService(logService);
|
|
2060
|
-
fileService.registerProvider(Schemas.file, createConfigurationFileSystemProvider(settingsResource,
|
|
2175
|
+
fileService.registerProvider(Schemas.file, createConfigurationFileSystemProvider(settingsResource, () => userConfigurationJson, userConfigurationChangeEmitter.event));
|
|
2061
2176
|
const configurationService = new ConfigurationService(settingsResource, fileService);
|
|
2062
2177
|
configurationService.initialize().catch(error => {
|
|
2063
2178
|
logService.error(error);
|
|
2064
2179
|
});
|
|
2065
2180
|
return {
|
|
2066
|
-
[IConfigurationService.toString()]: configurationService
|
|
2181
|
+
[IConfigurationService.toString()]: configurationService,
|
|
2182
|
+
[ITextResourceConfigurationService.toString()]: new SyncDescriptor(TextResourceConfigurationService)
|
|
2067
2183
|
};
|
|
2068
2184
|
}
|
|
2069
|
-
export { getServiceOverride as default };
|
|
2185
|
+
export { configurationRegistry, getServiceOverride as default, updateUserConfiguration };
|
package/dist/messages.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as Emitter, I as ILifecycleService, u as unsupported } from './missing-services-
|
|
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-c84f89c2.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';
|
|
@@ -41,7 +42,7 @@ import { DropdownMenuActionViewItem } from 'monaco-editor/esm/vs/base/browser/ui
|
|
|
41
42
|
import { a as assertAllDefined } from './types-371cc315.js';
|
|
42
43
|
import { assertIsDefined } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
43
44
|
import { ILayoutService } from 'monaco-editor/esm/vs/platform/layout/browser/layoutService.js';
|
|
44
|
-
import { I as IntervalCounter } from './async-
|
|
45
|
+
import { I as IntervalCounter } from './async-c36a786b.js';
|
|
45
46
|
import { IStorageService } from 'monaco-editor/esm/vs/platform/storage/common/storage.js';
|
|
46
47
|
import { Widget } from 'monaco-editor/esm/vs/base/browser/ui/widget.js';
|
|
47
48
|
import { isMacintosh, isWindows, isLinux } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
@@ -54,13 +55,25 @@ import { DeferredPromise } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
|
54
55
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
55
56
|
import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/common/descriptors.js';
|
|
56
57
|
import { StandaloneServices } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
57
|
-
import 'monaco-editor/esm/vs/
|
|
58
|
+
import 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
59
|
+
import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
60
|
+
import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
61
|
+
import 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
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';
|
|
65
|
+
import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
|
|
66
|
+
import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
67
|
+
import 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
68
|
+
import 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
58
69
|
import 'monaco-editor/esm/vs/base/common/network.js';
|
|
70
|
+
import 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
|
|
71
|
+
import 'monaco-editor/esm/vs/base/common/strings.js';
|
|
72
|
+
import 'monaco-editor/esm/vs/platform/environment/common/environment.js';
|
|
59
73
|
import 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
60
74
|
import 'monaco-editor/esm/vs/base/common/path.js';
|
|
61
75
|
import 'monaco-editor/esm/vs/base/common/linkedList.js';
|
|
62
76
|
import 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
63
|
-
import 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
64
77
|
import 'monaco-editor/esm/vs/base/common/map.js';
|
|
65
78
|
import 'monaco-editor/esm/vs/base/common/stopwatch.js';
|
|
66
79
|
import 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
@@ -71,18 +84,6 @@ import 'monaco-editor/esm/vs/editor/common/services/languageFeatures.js';
|
|
|
71
84
|
import 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
72
85
|
import 'monaco-editor/esm/vs/platform/markers/common/markers.js';
|
|
73
86
|
import 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
74
|
-
import 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
75
|
-
import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
76
|
-
import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
77
|
-
import 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
78
|
-
import 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
79
|
-
import 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
80
|
-
import 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
81
|
-
import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
|
|
82
|
-
import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
83
|
-
import 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
84
|
-
import 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
|
|
85
|
-
import 'monaco-editor/esm/vs/base/common/strings.js';
|
|
86
87
|
function isErrorWithActions(obj) {
|
|
87
88
|
const candidate = obj;
|
|
88
89
|
return candidate instanceof Error && Array.isArray(candidate.actions);
|
|
@@ -14,7 +14,8 @@ import { firstOrDefault } from 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
|
14
14
|
import { PLAINTEXT_LANGUAGE_ID } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
15
15
|
import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
16
16
|
import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
17
|
-
import { N as NoOpNotification$1,
|
|
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 { StandaloneConfigurationService } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
18
19
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
19
20
|
import { Extensions } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
20
21
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
@@ -826,18 +827,31 @@ class LanguageSelection {
|
|
|
826
827
|
}
|
|
827
828
|
}
|
|
828
829
|
}
|
|
829
|
-
var _a, _b, _c, _d, _e;
|
|
830
|
+
var _a, _b, _c, _d, _e, _f;
|
|
831
|
+
(_a = StandaloneConfigurationService.prototype).getConfigurationData ?? (_a.getConfigurationData = () => {
|
|
832
|
+
const emptyModel = {
|
|
833
|
+
contents: {},
|
|
834
|
+
keys: [],
|
|
835
|
+
overrides: []
|
|
836
|
+
};
|
|
837
|
+
return {
|
|
838
|
+
defaults: emptyModel,
|
|
839
|
+
user: emptyModel,
|
|
840
|
+
workspace: emptyModel,
|
|
841
|
+
folders: []
|
|
842
|
+
};
|
|
843
|
+
});
|
|
830
844
|
const configurationRegistry = Registry.as(Extensions.Configuration);
|
|
831
845
|
configurationRegistry.onDidUpdateConfiguration ?? (configurationRegistry.onDidUpdateConfiguration = configurationRegistry._onDidUpdateConfiguration.event);
|
|
832
|
-
(
|
|
846
|
+
(_b = NoOpNotification.prototype).onDidClose ?? (_b.onDidClose = Event.None);
|
|
833
847
|
for (const key of Object.getOwnPropertyNames(NoOpNotification$1.prototype)) {
|
|
834
848
|
if (!Object.hasOwnProperty.call(NoOpNotification.prototype, key)) {
|
|
835
849
|
NoOpNotification.prototype[key] = NoOpNotification$1.prototype[key];
|
|
836
850
|
}
|
|
837
851
|
}
|
|
838
|
-
(
|
|
839
|
-
(
|
|
840
|
-
(
|
|
852
|
+
(_c = LanguageService$1.prototype).getRegisteredLanguageIds ?? (_c.getRegisteredLanguageIds = LanguageService.prototype.getRegisteredLanguageIds);
|
|
853
|
+
(_d = ProgressBar$1.prototype).hide ?? (_d.hide = ProgressBar.prototype.hide);
|
|
854
|
+
(_e = Themable$1.prototype)['getColor'] ?? (_e['getColor'] = Themable.prototype['getColor']);
|
|
841
855
|
function polyfillQuickInput(fn) {
|
|
842
856
|
return function () {
|
|
843
857
|
const quickInput = fn.call(this);
|
|
@@ -848,7 +862,7 @@ function polyfillQuickInput(fn) {
|
|
|
848
862
|
QuickInputController.prototype.createQuickPick = polyfillQuickInput(QuickInputController.prototype.createQuickPick);
|
|
849
863
|
QuickInputController.prototype.createInputBox = polyfillQuickInput(QuickInputController.prototype.createInputBox);
|
|
850
864
|
const StandaloneUriLabelService = getSingletonServiceDescriptors().find(([id]) => id === ILabelService)[1].ctor;
|
|
851
|
-
(
|
|
865
|
+
(_f = StandaloneUriLabelService.prototype).onDidChangeFormatters ?? (_f.onDidChangeFormatters = Event.None);
|
|
852
866
|
function toVSCodeVSBuffer(value) {
|
|
853
867
|
if (value instanceof VSBuffer$1) {
|
|
854
868
|
return VSBuffer.wrap(value.buffer);
|
package/dist/modelEditor.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as __decorate,
|
|
2
|
-
import { E as Emitter, a as ILanguageDetectionService, u as unsupported } from './missing-services-
|
|
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-c84f89c2.js';
|
|
3
3
|
import { Disposable, MutableDisposable, dispose, toDisposable, ImmortalReference } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
4
|
import { w as withUndefinedAsNull } from './types-371cc315.js';
|
|
5
5
|
import { ThrottledDelayer } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
@@ -8,6 +8,7 @@ import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
|
8
8
|
import { IModelService } from 'monaco-editor/esm/vs/editor/common/services/model.js';
|
|
9
9
|
import { ILanguageService } from 'monaco-editor/esm/vs/editor/common/languages/language.js';
|
|
10
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';
|
|
11
12
|
import { MultiModelEditStackElement } from 'monaco-editor/esm/vs/editor/common/model/editStack.js';
|
|
12
13
|
import { ITextModelService } from 'monaco-editor/esm/vs/editor/common/services/resolverService.js';
|
|
13
14
|
import { IUndoRedoService } from 'monaco-editor/esm/vs/platform/undoRedo/common/undoRedo.js';
|
|
@@ -25,19 +26,36 @@ import { SyncDescriptor } from 'monaco-editor/esm/vs/platform/instantiation/comm
|
|
|
25
26
|
import { ICodeEditorService } from 'monaco-editor/esm/vs/editor/browser/services/codeEditorService.js';
|
|
26
27
|
import { Event } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
27
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';
|
|
28
49
|
import 'monaco-editor/esm/vs/platform/environment/common/environment.js';
|
|
29
50
|
import 'monaco-editor/esm/vs/base/common/platform.js';
|
|
30
51
|
import 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
31
52
|
import 'monaco-editor/esm/vs/base/common/path.js';
|
|
32
53
|
import 'monaco-editor/esm/vs/base/common/linkedList.js';
|
|
33
54
|
import 'monaco-editor/esm/vs/platform/log/common/log.js';
|
|
34
|
-
import 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
35
55
|
import 'monaco-editor/esm/vs/base/common/map.js';
|
|
36
|
-
import 'monaco-editor/esm/vs/base/common/errors.js';
|
|
37
56
|
import 'monaco-editor/esm/vs/base/common/stopwatch.js';
|
|
38
57
|
import 'monaco-editor/esm/vs/base/common/cancellation.js';
|
|
39
58
|
import 'monaco-editor/esm/vs/platform/commands/common/commands.js';
|
|
40
|
-
import 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
41
59
|
import 'monaco-editor/esm/vs/editor/browser/services/bulkEditService.js';
|
|
42
60
|
import 'monaco-editor/esm/vs/editor/common/languages/languageConfigurationRegistry.js';
|
|
43
61
|
import 'monaco-editor/esm/vs/editor/common/services/editorWorker.js';
|
|
@@ -49,23 +67,6 @@ import 'monaco-editor/esm/vs/platform/opener/common/opener.js';
|
|
|
49
67
|
import 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
50
68
|
import 'monaco-editor/esm/vs/platform/telemetry/common/telemetry.js';
|
|
51
69
|
import 'monaco-editor/esm/vs/base/common/severity.js';
|
|
52
|
-
import 'monaco-editor/esm/vs/base/common/buffer.js';
|
|
53
|
-
import 'monaco-editor/esm/vs/base/browser/ui/progressbar/progressbar.js';
|
|
54
|
-
import 'monaco-editor/esm/vs/base/common/objects.js';
|
|
55
|
-
import 'monaco-editor/esm/vs/base/common/types.js';
|
|
56
|
-
import 'monaco-editor/esm/vs/base/common/color.js';
|
|
57
|
-
import 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
58
|
-
import 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
59
|
-
import 'monaco-editor/esm/vs/base/common/arrays.js';
|
|
60
|
-
import 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
61
|
-
import 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
62
|
-
import 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
63
|
-
import 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
|
|
64
|
-
import 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
65
|
-
import 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
66
|
-
import 'monaco-editor/esm/vs/editor/common/languageFeatureRegistry.js';
|
|
67
|
-
import 'monaco-editor/esm/vs/base/common/strings.js';
|
|
68
|
-
import 'monaco-editor/esm/vs/base/browser/event.js';
|
|
69
70
|
class ReferenceCollection {
|
|
70
71
|
constructor() {
|
|
71
72
|
this.references = new Map();
|