@codingame/monaco-vscode-api 1.69.2 → 1.69.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/README.md +26 -1
- package/dist/configuration.js +3 -2
- package/dist/contextkey.js +387 -0
- package/dist/dialogs.d.ts +7 -0
- package/dist/dialogs.js +97 -0
- package/dist/extHost.js +3 -2
- package/dist/files.js +3 -3
- package/dist/keybindings.js +2 -2
- package/dist/languageConfiguration.js +2 -2
- package/dist/languageService.js +2 -2
- package/dist/languages.js +1 -1
- package/dist/layout.js +1318 -0
- package/dist/messages.d.ts +3 -0
- package/dist/messages.js +4 -3619
- package/dist/missing-services.js +54 -437
- package/dist/modelEditor.js +3 -2
- package/dist/monaco.d.ts +19 -1
- package/dist/monaco.js +2 -1
- package/dist/notifications.d.ts +7 -0
- package/dist/notifications.js +2577 -0
- package/dist/services.d.ts +19 -1
- package/dist/services.js +1 -0
- package/dist/snippets.js +3 -2
- package/dist/textmate.js +3 -3
- package/dist/theme.js +2 -2
- package/dist/tokenClassification.js +1 -1
- package/dist/tools.js +1 -1
- package/dist/types.js +46 -0
- package/package.json +15 -7
- package/dist/tslib.es6.js +0 -21
package/dist/missing-services.js
CHANGED
|
@@ -5,7 +5,7 @@ import { ProgressBar as ProgressBar$1 } from 'monaco-editor/esm/vs/base/browser/
|
|
|
5
5
|
import { mixin, equals, deepClone, deepFreeze } from 'monaco-editor/esm/vs/base/common/objects.js';
|
|
6
6
|
import { RunOnceScheduler, Promises, timeout } from 'monaco-editor/esm/vs/base/common/async.js';
|
|
7
7
|
import { trackFocus, show, hide, createStyleSheet } from 'monaco-editor/esm/vs/base/browser/dom.js';
|
|
8
|
-
import { isNumber, isObject
|
|
8
|
+
import { isNumber, isObject, isUndefinedOrNull } from 'monaco-editor/esm/vs/base/common/types.js';
|
|
9
9
|
import { Color as Color$1 } from 'monaco-editor/esm/vs/base/common/color.js';
|
|
10
10
|
import { LanguageService as LanguageService$1 } from 'monaco-editor/esm/vs/editor/common/services/languageService.js';
|
|
11
11
|
import { LanguagesRegistry as LanguagesRegistry$1 } from 'monaco-editor/esm/vs/editor/common/services/languagesRegistry.js';
|
|
@@ -13,20 +13,20 @@ import { firstOrDefault, distinct, equals as equals$1, binarySearch, range } fro
|
|
|
13
13
|
import { PLAINTEXT_LANGUAGE_ID, ModesRegistry } from 'monaco-editor/esm/vs/editor/common/languages/modesRegistry.js';
|
|
14
14
|
import { TokenizationRegistry } from 'monaco-editor/esm/vs/editor/common/languages.js';
|
|
15
15
|
import { NoOpNotification } from 'monaco-editor/esm/vs/platform/notification/common/notification.js';
|
|
16
|
-
import { I as IFileService, b as IUriIdentityService,
|
|
17
|
-
import { StandaloneConfigurationService as StandaloneConfigurationService$1
|
|
16
|
+
import { I as IFileService, b as IUriIdentityService, r as refineServiceDecorator, p as productSchemaId, c as IEditorService, d as IPaneCompositePartService, e as ITextFileService, f as IEditorGroupsService, g as IWorkbenchEnvironmentService, h as IWorkingCopyFileService, i as IPathService, S as Services, j as IProductService, k as ILanguageStatusService, l as IHostService, m as ISnippetsService, N as NoOpNotification$1, s as shuffle } from './services2.js';
|
|
17
|
+
import { StandaloneServices, StandaloneConfigurationService as StandaloneConfigurationService$1 } from 'monaco-editor/esm/vs/editor/standalone/browser/standaloneServices.js';
|
|
18
18
|
import { Configuration as Configuration$1, ConfigurationModel as ConfigurationModel$1, ConfigurationChangeEvent } from 'monaco-editor/esm/vs/platform/configuration/common/configurationModels.js';
|
|
19
19
|
import { DefaultConfigurationModel } from 'monaco-editor/esm/vs/platform/configuration/common/configurations.js';
|
|
20
20
|
import { URI } from 'monaco-editor/esm/vs/base/common/uri.js';
|
|
21
21
|
import { TernarySearchTree as TernarySearchTree$1, ResourceMap as ResourceMap$1 } from 'monaco-editor/esm/vs/base/common/map.js';
|
|
22
22
|
import { compare, regExpLeadsToEndlessLoop, compareIgnoreCase, compareSubstring, compareSubstringIgnoreCase } from 'monaco-editor/esm/vs/base/common/strings.js';
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import { ErrorHandler as ErrorHandler$1,
|
|
23
|
+
import { ContextKeyExpr, ContextKeyDefinedExpr, RawContextKey as RawContextKey$1, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
24
|
+
import { _ as __decorate, a as __param, R as RawContextKey } from './contextkey.js';
|
|
25
|
+
import { onUnexpectedError, ErrorHandler as ErrorHandler$1, CancellationError } from 'monaco-editor/esm/vs/base/common/errors.js';
|
|
26
26
|
import { clearPlatformLanguageAssociations, registerPlatformLanguageAssociation, getLanguageIds } from 'monaco-editor/esm/vs/editor/common/services/languagesAssociations.js';
|
|
27
27
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
28
|
-
import {
|
|
29
|
-
import { WorkspaceFolder as WorkspaceFolder$1
|
|
28
|
+
import { Extensions as Extensions$2, overrideIdentifiersFromKey, OVERRIDE_PROPERTY_REGEX } from 'monaco-editor/esm/vs/platform/configuration/common/configurationRegistry.js';
|
|
29
|
+
import { isSingleFolderWorkspaceIdentifier, WorkspaceFolder as WorkspaceFolder$1 } from 'monaco-editor/esm/vs/platform/workspace/common/workspace.js';
|
|
30
30
|
import { List as List$1 } from 'monaco-editor/esm/vs/base/browser/ui/list/listWidget.js';
|
|
31
31
|
import { Event, EventBufferer } from 'monaco-editor/esm/vs/base/common/event.js';
|
|
32
32
|
import { ListView } from 'monaco-editor/esm/vs/base/browser/ui/list/listView.js';
|
|
@@ -35,6 +35,7 @@ import { DomEmitter, stopEvent } from 'monaco-editor/esm/vs/base/browser/event.j
|
|
|
35
35
|
import { StandardKeyboardEvent } from 'monaco-editor/esm/vs/base/browser/keyboardEvent.js';
|
|
36
36
|
import { ListError } from 'monaco-editor/esm/vs/base/browser/ui/list/list.js';
|
|
37
37
|
import { clamp } from 'monaco-editor/esm/vs/base/common/numbers.js';
|
|
38
|
+
import { OS, isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
38
39
|
import { alert } from 'monaco-editor/esm/vs/base/browser/ui/aria/aria.js';
|
|
39
40
|
import { matchesPrefix } from 'monaco-editor/esm/vs/base/common/filters.js';
|
|
40
41
|
import { Gesture } from 'monaco-editor/esm/vs/base/browser/touch.js';
|
|
@@ -42,7 +43,6 @@ import { SnippetParser } from 'monaco-editor/esm/vs/editor/contrib/snippet/brows
|
|
|
42
43
|
import { QuickInputController } from 'monaco-editor/esm/vs/base/parts/quickinput/browser/quickInput.js';
|
|
43
44
|
import { getSingletonServiceDescriptors, registerSingleton } from 'monaco-editor/esm/vs/platform/instantiation/common/extensions.js';
|
|
44
45
|
import { ILabelService } from 'monaco-editor/esm/vs/platform/label/common/label.js';
|
|
45
|
-
import { _ as __decorate, a as __param } from './tslib.es6.js';
|
|
46
46
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
47
47
|
import { createDecorator } from 'monaco-editor/esm/vs/platform/instantiation/common/instantiation.js';
|
|
48
48
|
import { ExtensionIdentifier } from 'monaco-editor/esm/vs/platform/extensions/common/extensions.js';
|
|
@@ -759,51 +759,6 @@ AmbiguousCharacters.cache = ( (new LRUCachedFunction((locales) => {
|
|
|
759
759
|
AmbiguousCharacters._locales = ( (new Lazy(
|
|
760
760
|
() => ( (Object.keys(AmbiguousCharacters.ambiguousCharacterData.getValue()))).filter((k) => !k.startsWith('_'))
|
|
761
761
|
)));
|
|
762
|
-
function isString(str) {
|
|
763
|
-
return (typeof str === 'string');
|
|
764
|
-
}
|
|
765
|
-
function isStringArray(value) {
|
|
766
|
-
return Array.isArray(value) && value.every(elem => isString(elem));
|
|
767
|
-
}
|
|
768
|
-
function isObject(obj) {
|
|
769
|
-
return typeof obj === 'object'
|
|
770
|
-
&& obj !== null
|
|
771
|
-
&& !Array.isArray(obj)
|
|
772
|
-
&& !(obj instanceof RegExp)
|
|
773
|
-
&& !(obj instanceof Date);
|
|
774
|
-
}
|
|
775
|
-
function isUndefined(obj) {
|
|
776
|
-
return (typeof obj === 'undefined');
|
|
777
|
-
}
|
|
778
|
-
function isUndefinedOrNull(obj) {
|
|
779
|
-
return (isUndefined(obj) || obj === null);
|
|
780
|
-
}
|
|
781
|
-
function assertAllDefined(...args) {
|
|
782
|
-
const result = [];
|
|
783
|
-
for (let i = 0; i < args.length; i++) {
|
|
784
|
-
const arg = args[i];
|
|
785
|
-
if (isUndefinedOrNull(arg)) {
|
|
786
|
-
throw new Error(`Assertion Failed: argument at index ${i} is undefined or null`);
|
|
787
|
-
}
|
|
788
|
-
result.push(arg);
|
|
789
|
-
}
|
|
790
|
-
return result;
|
|
791
|
-
}
|
|
792
|
-
const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
793
|
-
function isEmptyObject(obj) {
|
|
794
|
-
if (!isObject(obj)) {
|
|
795
|
-
return false;
|
|
796
|
-
}
|
|
797
|
-
for (const key in obj) {
|
|
798
|
-
if (hasOwnProperty$1.call(obj, key)) {
|
|
799
|
-
return false;
|
|
800
|
-
}
|
|
801
|
-
}
|
|
802
|
-
return true;
|
|
803
|
-
}
|
|
804
|
-
function withUndefinedAsNull(x) {
|
|
805
|
-
return typeof x === 'undefined' ? null : x;
|
|
806
|
-
}
|
|
807
762
|
function raceCancellationError(promise, token) {
|
|
808
763
|
return (
|
|
809
764
|
(new Promise((resolve, reject) => {
|
|
@@ -2739,7 +2694,7 @@ class ConfigurationModel {
|
|
|
2739
2694
|
mergeContents(source, target) {
|
|
2740
2695
|
for (const key of ( (Object.keys(target)))) {
|
|
2741
2696
|
if (key in source) {
|
|
2742
|
-
if (isObject
|
|
2697
|
+
if (isObject(source[key]) && isObject(target[key])) {
|
|
2743
2698
|
this.mergeContents(source[key], target[key]);
|
|
2744
2699
|
continue;
|
|
2745
2700
|
}
|
|
@@ -2829,7 +2784,7 @@ class ConfigurationModelParser {
|
|
|
2829
2784
|
return this._parseErrors;
|
|
2830
2785
|
}
|
|
2831
2786
|
parse(content, options) {
|
|
2832
|
-
if (!isUndefinedOrNull
|
|
2787
|
+
if (!isUndefinedOrNull(content)) {
|
|
2833
2788
|
const raw = this.doParseContent(content);
|
|
2834
2789
|
this.parseRaw(raw, options);
|
|
2835
2790
|
}
|
|
@@ -3414,362 +3369,6 @@ function compareConfigurationContents(to, from) {
|
|
|
3414
3369
|
}
|
|
3415
3370
|
return { added, removed, updated };
|
|
3416
3371
|
}
|
|
3417
|
-
const CONSTANT_VALUES = ( (new Map()));
|
|
3418
|
-
CONSTANT_VALUES.set('false', false);
|
|
3419
|
-
CONSTANT_VALUES.set('true', true);
|
|
3420
|
-
CONSTANT_VALUES.set('isMac', isMacintosh);
|
|
3421
|
-
CONSTANT_VALUES.set('isLinux', isLinux);
|
|
3422
|
-
CONSTANT_VALUES.set('isWindows', isWindows);
|
|
3423
|
-
CONSTANT_VALUES.set('isWeb', isWeb);
|
|
3424
|
-
CONSTANT_VALUES.set('isMacNative', isMacintosh && !isWeb);
|
|
3425
|
-
CONSTANT_VALUES.set('isEdge', isEdge);
|
|
3426
|
-
CONSTANT_VALUES.set('isFirefox', isFirefox);
|
|
3427
|
-
CONSTANT_VALUES.set('isChrome', isChrome);
|
|
3428
|
-
CONSTANT_VALUES.set('isSafari', isSafari);
|
|
3429
|
-
class ContextKeyFalseExpr {
|
|
3430
|
-
constructor() {
|
|
3431
|
-
this.type = 0 ;
|
|
3432
|
-
}
|
|
3433
|
-
cmp(other) {
|
|
3434
|
-
return this.type - other.type;
|
|
3435
|
-
}
|
|
3436
|
-
equals(other) {
|
|
3437
|
-
return (other.type === this.type);
|
|
3438
|
-
}
|
|
3439
|
-
substituteConstants() {
|
|
3440
|
-
return this;
|
|
3441
|
-
}
|
|
3442
|
-
evaluate(context) {
|
|
3443
|
-
return false;
|
|
3444
|
-
}
|
|
3445
|
-
serialize() {
|
|
3446
|
-
return 'false';
|
|
3447
|
-
}
|
|
3448
|
-
keys() {
|
|
3449
|
-
return [];
|
|
3450
|
-
}
|
|
3451
|
-
map(mapFnc) {
|
|
3452
|
-
return this;
|
|
3453
|
-
}
|
|
3454
|
-
negate() {
|
|
3455
|
-
return ContextKeyTrueExpr.INSTANCE;
|
|
3456
|
-
}
|
|
3457
|
-
}
|
|
3458
|
-
ContextKeyFalseExpr.INSTANCE = ( (new ContextKeyFalseExpr()));
|
|
3459
|
-
class ContextKeyTrueExpr {
|
|
3460
|
-
constructor() {
|
|
3461
|
-
this.type = 1 ;
|
|
3462
|
-
}
|
|
3463
|
-
cmp(other) {
|
|
3464
|
-
return this.type - other.type;
|
|
3465
|
-
}
|
|
3466
|
-
equals(other) {
|
|
3467
|
-
return (other.type === this.type);
|
|
3468
|
-
}
|
|
3469
|
-
substituteConstants() {
|
|
3470
|
-
return this;
|
|
3471
|
-
}
|
|
3472
|
-
evaluate(context) {
|
|
3473
|
-
return true;
|
|
3474
|
-
}
|
|
3475
|
-
serialize() {
|
|
3476
|
-
return 'true';
|
|
3477
|
-
}
|
|
3478
|
-
keys() {
|
|
3479
|
-
return [];
|
|
3480
|
-
}
|
|
3481
|
-
map(mapFnc) {
|
|
3482
|
-
return this;
|
|
3483
|
-
}
|
|
3484
|
-
negate() {
|
|
3485
|
-
return ContextKeyFalseExpr.INSTANCE;
|
|
3486
|
-
}
|
|
3487
|
-
}
|
|
3488
|
-
ContextKeyTrueExpr.INSTANCE = ( (new ContextKeyTrueExpr()));
|
|
3489
|
-
class ContextKeyDefinedExpr {
|
|
3490
|
-
constructor(key, negated) {
|
|
3491
|
-
this.key = key;
|
|
3492
|
-
this.negated = negated;
|
|
3493
|
-
this.type = 2 ;
|
|
3494
|
-
}
|
|
3495
|
-
static create(key, negated = null) {
|
|
3496
|
-
const constantValue = CONSTANT_VALUES.get(key);
|
|
3497
|
-
if (typeof constantValue === 'boolean') {
|
|
3498
|
-
return constantValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE;
|
|
3499
|
-
}
|
|
3500
|
-
return (
|
|
3501
|
-
(new ContextKeyDefinedExpr(key, negated))
|
|
3502
|
-
);
|
|
3503
|
-
}
|
|
3504
|
-
cmp(other) {
|
|
3505
|
-
if (other.type !== this.type) {
|
|
3506
|
-
return this.type - other.type;
|
|
3507
|
-
}
|
|
3508
|
-
return cmp1(this.key, other.key);
|
|
3509
|
-
}
|
|
3510
|
-
equals(other) {
|
|
3511
|
-
if (other.type === this.type) {
|
|
3512
|
-
return (this.key === other.key);
|
|
3513
|
-
}
|
|
3514
|
-
return false;
|
|
3515
|
-
}
|
|
3516
|
-
substituteConstants() {
|
|
3517
|
-
const constantValue = CONSTANT_VALUES.get(this.key);
|
|
3518
|
-
if (typeof constantValue === 'boolean') {
|
|
3519
|
-
return constantValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE;
|
|
3520
|
-
}
|
|
3521
|
-
return this;
|
|
3522
|
-
}
|
|
3523
|
-
evaluate(context) {
|
|
3524
|
-
return (!!context.getValue(this.key));
|
|
3525
|
-
}
|
|
3526
|
-
serialize() {
|
|
3527
|
-
return this.key;
|
|
3528
|
-
}
|
|
3529
|
-
keys() {
|
|
3530
|
-
return [this.key];
|
|
3531
|
-
}
|
|
3532
|
-
map(mapFnc) {
|
|
3533
|
-
return mapFnc.mapDefined(this.key);
|
|
3534
|
-
}
|
|
3535
|
-
negate() {
|
|
3536
|
-
if (!this.negated) {
|
|
3537
|
-
this.negated = ContextKeyNotExpr.create(this.key, this);
|
|
3538
|
-
}
|
|
3539
|
-
return this.negated;
|
|
3540
|
-
}
|
|
3541
|
-
}
|
|
3542
|
-
class ContextKeyEqualsExpr {
|
|
3543
|
-
constructor(key, value, negated) {
|
|
3544
|
-
this.key = key;
|
|
3545
|
-
this.value = value;
|
|
3546
|
-
this.negated = negated;
|
|
3547
|
-
this.type = 4 ;
|
|
3548
|
-
}
|
|
3549
|
-
static create(key, value, negated = null) {
|
|
3550
|
-
if (typeof value === 'boolean') {
|
|
3551
|
-
return (value ? ContextKeyDefinedExpr.create(key, negated) : ContextKeyNotExpr.create(key, negated));
|
|
3552
|
-
}
|
|
3553
|
-
const constantValue = CONSTANT_VALUES.get(key);
|
|
3554
|
-
if (typeof constantValue === 'boolean') {
|
|
3555
|
-
const trueValue = constantValue ? 'true' : 'false';
|
|
3556
|
-
return (value === trueValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE);
|
|
3557
|
-
}
|
|
3558
|
-
return (
|
|
3559
|
-
(new ContextKeyEqualsExpr(key, value, negated))
|
|
3560
|
-
);
|
|
3561
|
-
}
|
|
3562
|
-
cmp(other) {
|
|
3563
|
-
if (other.type !== this.type) {
|
|
3564
|
-
return this.type - other.type;
|
|
3565
|
-
}
|
|
3566
|
-
return cmp2(this.key, this.value, other.key, other.value);
|
|
3567
|
-
}
|
|
3568
|
-
equals(other) {
|
|
3569
|
-
if (other.type === this.type) {
|
|
3570
|
-
return (this.key === other.key && this.value === other.value);
|
|
3571
|
-
}
|
|
3572
|
-
return false;
|
|
3573
|
-
}
|
|
3574
|
-
substituteConstants() {
|
|
3575
|
-
const constantValue = CONSTANT_VALUES.get(this.key);
|
|
3576
|
-
if (typeof constantValue === 'boolean') {
|
|
3577
|
-
const trueValue = constantValue ? 'true' : 'false';
|
|
3578
|
-
return (this.value === trueValue ? ContextKeyTrueExpr.INSTANCE : ContextKeyFalseExpr.INSTANCE);
|
|
3579
|
-
}
|
|
3580
|
-
return this;
|
|
3581
|
-
}
|
|
3582
|
-
evaluate(context) {
|
|
3583
|
-
return (context.getValue(this.key) == this.value);
|
|
3584
|
-
}
|
|
3585
|
-
serialize() {
|
|
3586
|
-
return `${this.key} == '${this.value}'`;
|
|
3587
|
-
}
|
|
3588
|
-
keys() {
|
|
3589
|
-
return [this.key];
|
|
3590
|
-
}
|
|
3591
|
-
map(mapFnc) {
|
|
3592
|
-
return mapFnc.mapEquals(this.key, this.value);
|
|
3593
|
-
}
|
|
3594
|
-
negate() {
|
|
3595
|
-
if (!this.negated) {
|
|
3596
|
-
this.negated = ContextKeyNotEqualsExpr.create(this.key, this.value, this);
|
|
3597
|
-
}
|
|
3598
|
-
return this.negated;
|
|
3599
|
-
}
|
|
3600
|
-
}
|
|
3601
|
-
class ContextKeyNotEqualsExpr {
|
|
3602
|
-
constructor(key, value, negated) {
|
|
3603
|
-
this.key = key;
|
|
3604
|
-
this.value = value;
|
|
3605
|
-
this.negated = negated;
|
|
3606
|
-
this.type = 5 ;
|
|
3607
|
-
}
|
|
3608
|
-
static create(key, value, negated = null) {
|
|
3609
|
-
if (typeof value === 'boolean') {
|
|
3610
|
-
if (value) {
|
|
3611
|
-
return ContextKeyNotExpr.create(key, negated);
|
|
3612
|
-
}
|
|
3613
|
-
return ContextKeyDefinedExpr.create(key, negated);
|
|
3614
|
-
}
|
|
3615
|
-
const constantValue = CONSTANT_VALUES.get(key);
|
|
3616
|
-
if (typeof constantValue === 'boolean') {
|
|
3617
|
-
const falseValue = constantValue ? 'true' : 'false';
|
|
3618
|
-
return (value === falseValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE);
|
|
3619
|
-
}
|
|
3620
|
-
return (
|
|
3621
|
-
(new ContextKeyNotEqualsExpr(key, value, negated))
|
|
3622
|
-
);
|
|
3623
|
-
}
|
|
3624
|
-
cmp(other) {
|
|
3625
|
-
if (other.type !== this.type) {
|
|
3626
|
-
return this.type - other.type;
|
|
3627
|
-
}
|
|
3628
|
-
return cmp2(this.key, this.value, other.key, other.value);
|
|
3629
|
-
}
|
|
3630
|
-
equals(other) {
|
|
3631
|
-
if (other.type === this.type) {
|
|
3632
|
-
return (this.key === other.key && this.value === other.value);
|
|
3633
|
-
}
|
|
3634
|
-
return false;
|
|
3635
|
-
}
|
|
3636
|
-
substituteConstants() {
|
|
3637
|
-
const constantValue = CONSTANT_VALUES.get(this.key);
|
|
3638
|
-
if (typeof constantValue === 'boolean') {
|
|
3639
|
-
const falseValue = constantValue ? 'true' : 'false';
|
|
3640
|
-
return (this.value === falseValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE);
|
|
3641
|
-
}
|
|
3642
|
-
return this;
|
|
3643
|
-
}
|
|
3644
|
-
evaluate(context) {
|
|
3645
|
-
return (context.getValue(this.key) != this.value);
|
|
3646
|
-
}
|
|
3647
|
-
serialize() {
|
|
3648
|
-
return `${this.key} != '${this.value}'`;
|
|
3649
|
-
}
|
|
3650
|
-
keys() {
|
|
3651
|
-
return [this.key];
|
|
3652
|
-
}
|
|
3653
|
-
map(mapFnc) {
|
|
3654
|
-
return mapFnc.mapNotEquals(this.key, this.value);
|
|
3655
|
-
}
|
|
3656
|
-
negate() {
|
|
3657
|
-
if (!this.negated) {
|
|
3658
|
-
this.negated = ContextKeyEqualsExpr.create(this.key, this.value, this);
|
|
3659
|
-
}
|
|
3660
|
-
return this.negated;
|
|
3661
|
-
}
|
|
3662
|
-
}
|
|
3663
|
-
class ContextKeyNotExpr {
|
|
3664
|
-
constructor(key, negated) {
|
|
3665
|
-
this.key = key;
|
|
3666
|
-
this.negated = negated;
|
|
3667
|
-
this.type = 3 ;
|
|
3668
|
-
}
|
|
3669
|
-
static create(key, negated = null) {
|
|
3670
|
-
const constantValue = CONSTANT_VALUES.get(key);
|
|
3671
|
-
if (typeof constantValue === 'boolean') {
|
|
3672
|
-
return (constantValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE);
|
|
3673
|
-
}
|
|
3674
|
-
return (
|
|
3675
|
-
(new ContextKeyNotExpr(key, negated))
|
|
3676
|
-
);
|
|
3677
|
-
}
|
|
3678
|
-
cmp(other) {
|
|
3679
|
-
if (other.type !== this.type) {
|
|
3680
|
-
return this.type - other.type;
|
|
3681
|
-
}
|
|
3682
|
-
return cmp1(this.key, other.key);
|
|
3683
|
-
}
|
|
3684
|
-
equals(other) {
|
|
3685
|
-
if (other.type === this.type) {
|
|
3686
|
-
return (this.key === other.key);
|
|
3687
|
-
}
|
|
3688
|
-
return false;
|
|
3689
|
-
}
|
|
3690
|
-
substituteConstants() {
|
|
3691
|
-
const constantValue = CONSTANT_VALUES.get(this.key);
|
|
3692
|
-
if (typeof constantValue === 'boolean') {
|
|
3693
|
-
return (constantValue ? ContextKeyFalseExpr.INSTANCE : ContextKeyTrueExpr.INSTANCE);
|
|
3694
|
-
}
|
|
3695
|
-
return this;
|
|
3696
|
-
}
|
|
3697
|
-
evaluate(context) {
|
|
3698
|
-
return (!context.getValue(this.key));
|
|
3699
|
-
}
|
|
3700
|
-
serialize() {
|
|
3701
|
-
return `!${this.key}`;
|
|
3702
|
-
}
|
|
3703
|
-
keys() {
|
|
3704
|
-
return [this.key];
|
|
3705
|
-
}
|
|
3706
|
-
map(mapFnc) {
|
|
3707
|
-
return mapFnc.mapNot(this.key);
|
|
3708
|
-
}
|
|
3709
|
-
negate() {
|
|
3710
|
-
if (!this.negated) {
|
|
3711
|
-
this.negated = ContextKeyDefinedExpr.create(this.key, this);
|
|
3712
|
-
}
|
|
3713
|
-
return this.negated;
|
|
3714
|
-
}
|
|
3715
|
-
}
|
|
3716
|
-
class RawContextKey extends ContextKeyDefinedExpr {
|
|
3717
|
-
constructor(key, defaultValue, metaOrHide) {
|
|
3718
|
-
super(key, null);
|
|
3719
|
-
this._defaultValue = defaultValue;
|
|
3720
|
-
if (typeof metaOrHide === 'object') {
|
|
3721
|
-
RawContextKey._info.push({ ...metaOrHide, key });
|
|
3722
|
-
}
|
|
3723
|
-
else if (metaOrHide !== true) {
|
|
3724
|
-
RawContextKey._info.push({ key, description: metaOrHide, type: defaultValue !== null && defaultValue !== undefined ? typeof defaultValue : undefined });
|
|
3725
|
-
}
|
|
3726
|
-
}
|
|
3727
|
-
static all() {
|
|
3728
|
-
return (
|
|
3729
|
-
(RawContextKey._info.values())
|
|
3730
|
-
);
|
|
3731
|
-
}
|
|
3732
|
-
bindTo(target) {
|
|
3733
|
-
return target.createKey(this.key, this._defaultValue);
|
|
3734
|
-
}
|
|
3735
|
-
getValue(target) {
|
|
3736
|
-
return target.getContextKeyValue(this.key);
|
|
3737
|
-
}
|
|
3738
|
-
toNegated() {
|
|
3739
|
-
return this.negate();
|
|
3740
|
-
}
|
|
3741
|
-
isEqualTo(value) {
|
|
3742
|
-
return ContextKeyEqualsExpr.create(this.key, value);
|
|
3743
|
-
}
|
|
3744
|
-
notEqualsTo(value) {
|
|
3745
|
-
return ContextKeyNotEqualsExpr.create(this.key, value);
|
|
3746
|
-
}
|
|
3747
|
-
}
|
|
3748
|
-
RawContextKey._info = [];
|
|
3749
|
-
function cmp1(key1, key2) {
|
|
3750
|
-
if (key1 < key2) {
|
|
3751
|
-
return -1;
|
|
3752
|
-
}
|
|
3753
|
-
if (key1 > key2) {
|
|
3754
|
-
return 1;
|
|
3755
|
-
}
|
|
3756
|
-
return 0;
|
|
3757
|
-
}
|
|
3758
|
-
function cmp2(key1, value1, key2, value2) {
|
|
3759
|
-
if (key1 < key2) {
|
|
3760
|
-
return -1;
|
|
3761
|
-
}
|
|
3762
|
-
if (key1 > key2) {
|
|
3763
|
-
return 1;
|
|
3764
|
-
}
|
|
3765
|
-
if (value1 < value2) {
|
|
3766
|
-
return -1;
|
|
3767
|
-
}
|
|
3768
|
-
if (value1 > value2) {
|
|
3769
|
-
return 1;
|
|
3770
|
-
}
|
|
3771
|
-
return 0;
|
|
3772
|
-
}
|
|
3773
3372
|
function isWorkspaceIdentifier(obj) {
|
|
3774
3373
|
const workspaceIdentifier = obj;
|
|
3775
3374
|
return typeof workspaceIdentifier?.id === 'string' && URI.isUri(workspaceIdentifier.configPath);
|
|
@@ -6206,19 +5805,30 @@ if (SnippetParser.prototype.text == null) {
|
|
|
6206
5805
|
else {
|
|
6207
5806
|
console.warn('Useless polyfill: SnippetParser');
|
|
6208
5807
|
}
|
|
6209
|
-
|
|
6210
|
-
Object.defineProperties(
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
Object.
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
5808
|
+
function polyfillPrototypeSimple(a, b) {
|
|
5809
|
+
Object.defineProperties(a, Object.getOwnPropertyDescriptors(b));
|
|
5810
|
+
}
|
|
5811
|
+
function polyfillPrototype(a, b, toA, toB) {
|
|
5812
|
+
for (const key of Object.getOwnPropertyNames(b)) {
|
|
5813
|
+
if (!Object.hasOwnProperty.call(a, key)) {
|
|
5814
|
+
a[key] = function (...args) {
|
|
5815
|
+
return toA(b[key].call(this, ...args.map(toB)));
|
|
5816
|
+
};
|
|
5817
|
+
}
|
|
5818
|
+
}
|
|
5819
|
+
}
|
|
5820
|
+
polyfillPrototypeSimple(List$1.prototype, List.prototype);
|
|
5821
|
+
polyfillPrototypeSimple(WorkspaceFolder$1.prototype, WorkspaceFolder.prototype);
|
|
5822
|
+
polyfillPrototypeSimple(LanguagesRegistry$1.prototype, LanguagesRegistry.prototype);
|
|
5823
|
+
polyfillPrototypeSimple(ErrorHandler$1.prototype, ErrorHandler.prototype);
|
|
5824
|
+
polyfillPrototypeSimple(RawContextKey$1.prototype, RawContextKey.prototype);
|
|
5825
|
+
polyfillPrototypeSimple(Configuration$1.prototype, Configuration.prototype);
|
|
5826
|
+
polyfillPrototypeSimple(TernarySearchTree$1.prototype, TernarySearchTree.prototype);
|
|
5827
|
+
polyfillPrototypeSimple(StandaloneConfigurationService$1.prototype, StandaloneConfigurationService.prototype);
|
|
5828
|
+
polyfillPrototypeSimple(LanguageService$1.prototype, LanguageService.prototype);
|
|
5829
|
+
polyfillPrototypeSimple(NoOpNotification.prototype, NoOpNotification$1.prototype);
|
|
5830
|
+
polyfillPrototypeSimple(Themable$1.prototype, Themable.prototype);
|
|
5831
|
+
polyfillPrototypeSimple(ProgressBar$1.prototype, ProgressBar.prototype);
|
|
6222
5832
|
const jsonContributionRegistry = ( Registry.as(Extensions.JSONContribution));
|
|
6223
5833
|
jsonContributionRegistry.getSchemaContributions ?? (jsonContributionRegistry.getSchemaContributions = () => ({
|
|
6224
5834
|
schemas: jsonContributionRegistry.schemasById
|
|
@@ -6264,13 +5874,20 @@ for (const key of Object.getOwnPropertyNames(VSBuffer)) {
|
|
|
6264
5874
|
};
|
|
6265
5875
|
}
|
|
6266
5876
|
}
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
};
|
|
5877
|
+
polyfillPrototype(VSBuffer$1.prototype, VSBuffer.prototype, toMonacoVSBuffer, toVSCodeVSBuffer);
|
|
5878
|
+
function toMonacoColor(value) {
|
|
5879
|
+
if (value instanceof Color) {
|
|
5880
|
+
return new Color$1(value.rgba);
|
|
6272
5881
|
}
|
|
5882
|
+
return value;
|
|
5883
|
+
}
|
|
5884
|
+
function toVSCodeColor(value) {
|
|
5885
|
+
if (value instanceof Color$1) {
|
|
5886
|
+
return new Color(value.rgba);
|
|
5887
|
+
}
|
|
5888
|
+
return value;
|
|
6273
5889
|
}
|
|
5890
|
+
polyfillPrototype(Color$1.prototype, Color.prototype, toMonacoColor, toVSCodeColor);
|
|
6274
5891
|
const EXTENSION_CATEGORIES = [
|
|
6275
5892
|
'Azure',
|
|
6276
5893
|
'Data Science',
|
|
@@ -7221,7 +6838,7 @@ class BrowserHostColorSchemeService extends Disposable {
|
|
|
7221
6838
|
const IPreferencesService = ( (createDecorator('preferencesService')));
|
|
7222
6839
|
const ITextMateService = ( (createDecorator('textMateService')));
|
|
7223
6840
|
const IUserDataProfileService = ( (createDecorator('IUserDataProfileService')));
|
|
7224
|
-
ContextKeyExpr.and(ProductQualityContext.notEqualsTo('stable'), ContextKeyDefinedExpr
|
|
6841
|
+
ContextKeyExpr.and(ProductQualityContext.notEqualsTo('stable'), ContextKeyDefinedExpr.create(`config.${PROFILES_ENABLEMENT_CONFIG}`));
|
|
7225
6842
|
let UserDataProfileService = class UserDataProfileService extends Disposable {
|
|
7226
6843
|
constructor(currentProfile, userDataProfilesService) {
|
|
7227
6844
|
super();
|
|
@@ -7525,7 +7142,7 @@ class WorkbenchEnvironmentService {
|
|
|
7525
7142
|
get userRoamingDataHome() { return unsupported(); }
|
|
7526
7143
|
get keyboardLayoutResource() { return unsupported(); }
|
|
7527
7144
|
get argvResource() { return unsupported(); }
|
|
7528
|
-
get snippetsHome() { return URI.
|
|
7145
|
+
get snippetsHome() { return ( URI.from({ scheme: 'user', path: '/snippets' })); }
|
|
7529
7146
|
get untitledWorkspacesHome() { return unsupported(); }
|
|
7530
7147
|
get globalStorageHome() { return unsupported(); }
|
|
7531
7148
|
get workspaceStorageHome() { return unsupported(); }
|
|
@@ -7727,12 +7344,12 @@ const profile = {
|
|
|
7727
7344
|
id: 'default',
|
|
7728
7345
|
isDefault: true,
|
|
7729
7346
|
name: 'default',
|
|
7730
|
-
location: URI.
|
|
7347
|
+
location: ( URI.from({ scheme: 'user', path: '/profile.json' })),
|
|
7731
7348
|
get globalStorageHome() { return unsupported(); },
|
|
7732
|
-
settingsResource: URI.
|
|
7733
|
-
keybindingsResource: URI.
|
|
7349
|
+
settingsResource: ( URI.from({ scheme: 'user', path: '/settings.json' })),
|
|
7350
|
+
keybindingsResource: ( URI.from({ scheme: 'user', path: '/keybindings.json' })),
|
|
7734
7351
|
get tasksResource() { return unsupported(); },
|
|
7735
|
-
get snippetsHome() { return URI.
|
|
7352
|
+
get snippetsHome() { return ( URI.from({ scheme: 'user', path: '/snippets' })); },
|
|
7736
7353
|
extensionsResource: undefined
|
|
7737
7354
|
};
|
|
7738
7355
|
registerSingleton(IUserDataProfilesService, class UserDataProfilesService {
|
|
@@ -7775,4 +7392,4 @@ registerSingleton(ISnippetsService, class SnippetsService {
|
|
|
7775
7392
|
this.getSnippetsSync = unsupported;
|
|
7776
7393
|
}
|
|
7777
7394
|
});
|
|
7778
|
-
export {
|
|
7395
|
+
export { readableToBuffer as A, Barrier as B, newWriteableBufferStream as C, newWriteableStream as D, Emitter as E, IUserDataProfileService as F, IKeyboardLayoutService as G, IPreferencesService as H, IExtensionService as I, ExtensionMessageCollector as J, parse as K, ITextMateService as L, getNodeType as M, NotImplementedError as N, IBrowserWorkbenchEnvironmentService as O, IHostColorSchemeService as P, IUserDataInitializationService as Q, ResourceSet as R, Sequencer as S, UserSettings as U, readonly as a, ILifecycleService as b, checkProposedApiEnabled as c, disposed as d, IntervalCounter as e, ExtensionsRegistry as f, ILanguageDetectionService as g, IPolicyService as h, isProposedApiEnabled as i, IUserDataProfilesService as j, NullPolicyService as k, format2 as l, getServiceMachineId as m, ResourceQueue as n, isReadableStream as o, peekStream as p, peekReadable as q, raceCancellationError as r, bufferToReadable as s, streamToBuffer as t, unsupported as u, consumeStream as v, transform as w, isReadableBufferedStream as x, listenStream as y, bufferedStreamToBuffer as z };
|
package/dist/modelEditor.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { _ as __decorate, a as __param } from './
|
|
2
|
-
import {
|
|
1
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
2
|
+
import { g as ILanguageDetectionService, E as Emitter, u as unsupported } from './missing-services.js';
|
|
3
3
|
import { MutableDisposable, Disposable, toDisposable, ImmortalReference, dispose } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
4
|
+
import { w as withUndefinedAsNull } from './types.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';
|
package/dist/monaco.d.ts
CHANGED
|
@@ -375,6 +375,24 @@ interface ServiceIdentifier<T> {
|
|
|
375
375
|
type: T;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
+
declare const enum ContextKeyExprType {
|
|
379
|
+
False = 0,
|
|
380
|
+
True = 1,
|
|
381
|
+
Defined = 2,
|
|
382
|
+
Not = 3,
|
|
383
|
+
Equals = 4,
|
|
384
|
+
NotEquals = 5,
|
|
385
|
+
And = 6,
|
|
386
|
+
Regex = 7,
|
|
387
|
+
NotRegex = 8,
|
|
388
|
+
Or = 9,
|
|
389
|
+
In = 10,
|
|
390
|
+
NotIn = 11,
|
|
391
|
+
Greater = 12,
|
|
392
|
+
GreaterEquals = 13,
|
|
393
|
+
Smaller = 14,
|
|
394
|
+
SmallerEquals = 15
|
|
395
|
+
}
|
|
378
396
|
interface IContextKeyExprMapper {
|
|
379
397
|
mapDefined(key: string): ContextKeyExpression;
|
|
380
398
|
mapNot(key: string): ContextKeyExpression;
|
|
@@ -4911,4 +4929,4 @@ declare type FileMatch = Partial<Record<string, string[]>>;
|
|
|
4911
4929
|
declare function getJsonSchemas(fileMatchs?: FileMatch): monaco.languages.json.DiagnosticsOptions['schemas'];
|
|
4912
4930
|
declare const onDidChangeJsonSchema: Event<string>;
|
|
4913
4931
|
|
|
4914
|
-
export { CommandsRegistry, DisposableStore, Extensions, FoldingController, FoldingModel, IJSONContributionRegistry, IJSONSchema, Registry, createConfiguredDiffEditor, createConfiguredEditor, errorHandler, getJsonSchemas, onDidChangeJsonSchema, registerColor, setCollapseStateForMatchingLines };
|
|
4932
|
+
export { CommandsRegistry, ContextKeyExprType, DisposableStore, Extensions, FoldingController, FoldingModel, IJSONContributionRegistry, IJSONSchema, Registry, createConfiguredDiffEditor, createConfiguredEditor, errorHandler, getJsonSchemas, onDidChangeJsonSchema, registerColor, setCollapseStateForMatchingLines };
|
package/dist/monaco.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { _ as __decorate, a as __param } from './
|
|
1
|
+
import { _ as __decorate, a as __param } from './contextkey.js';
|
|
2
|
+
export { C as ContextKeyExprType } from './contextkey.js';
|
|
2
3
|
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api.js';
|
|
3
4
|
export { registerColor } from 'monaco-editor/esm/vs/platform/theme/common/colorRegistry.js';
|
|
4
5
|
import { c as createInjectedClass } from './injection.js';
|