@arcgis/coding-components 4.31.0-next.0 → 4.31.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/arcade.worker.js +13 -13
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-d34c7a85.js → p-03ea6cd7.js} +3 -3
- package/dist/arcgis-coding-components/p-0c6de9b3.js +6 -0
- package/dist/arcgis-coding-components/p-36fedc23.js +68 -0
- package/dist/arcgis-coding-components/p-5ef7cce5.js +6 -0
- package/dist/arcgis-coding-components/{p-b0f66fd8.js → p-60c2a820.js} +2 -2
- package/dist/arcgis-coding-components/{p-f32a81b3.js → p-62ee6251.js} +1 -1
- package/dist/arcgis-coding-components/{p-25960980.js → p-7984ea8e.js} +2 -2
- package/dist/arcgis-coding-components/p-81c37dab.entry.js +6 -0
- package/dist/arcgis-coding-components/{p-73af647c.js → p-93a97573.js} +3 -3
- package/dist/arcgis-coding-components/{p-4b079737.js → p-9eced6fc.js} +2 -2
- package/dist/arcgis-coding-components/{p-bd97ed67.js → p-bb7e832e.js} +3 -3
- package/dist/arcgis-coding-components/{p-a333eca1.js → p-e7ee4d64.js} +3 -3
- package/dist/arcgis-coding-components/p-e8211ffe.js +7 -0
- package/dist/cjs/app-globals-aee5f4b5.js +10 -0
- package/dist/cjs/{arcade-defaults-fa428ea6.js → arcade-defaults-a8d8f8e2.js} +232 -103
- package/dist/cjs/{arcade-mode-75d2c139.js → arcade-mode-b85ae7d4.js} +37 -37
- package/dist/cjs/{arcgis-arcade-api_6.cjs.entry.js → arcgis-arcade-editor_6.cjs.entry.js} +5128 -5063
- package/dist/cjs/arcgis-coding-components.cjs.js +14 -12
- package/dist/cjs/{css-c5819912.js → css-7cc05f76.js} +1 -1
- package/dist/cjs/{cssMode-555a44d1.js → cssMode-2b0daeae.js} +3 -3
- package/dist/cjs/{html-2bff0c65.js → html-f56911e1.js} +3 -3
- package/dist/cjs/{htmlMode-77c4a499.js → htmlMode-43eed674.js} +3 -3
- package/dist/cjs/index-b34238a6.js +1303 -0
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{javascript-70a512ed.js → javascript-5115cb76.js} +4 -4
- package/dist/cjs/{jsonMode-0a74131c.js → jsonMode-550dda36.js} +3 -3
- package/dist/cjs/loader.cjs.js +6 -4
- package/dist/cjs/{tsMode-8cb776f7.js → tsMode-336306a9.js} +3 -3
- package/dist/cjs/{typescript-2695cf9d.js → typescript-b395242f.js} +3 -3
- package/dist/components/arcade-defaults.js +107 -48
- package/dist/components/arcade-mode.js +5 -5
- package/dist/components/arcade-results.js +7 -6
- package/dist/components/arcade-suggestions.js +8 -7
- package/dist/components/arcade-variables.js +5 -4
- package/dist/components/arcgis-arcade-editor.js +20 -20
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.d.ts +11 -0
- package/dist/components/arcgis-language-api-panel.js +11 -0
- package/dist/components/{chunk-63RMNUHL.js → chunk-IHYYRFLQ.js} +196 -108
- package/dist/components/code-editor.js +146 -8
- package/dist/components/fields.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +12 -7
- package/dist/components/{arcade-api.js → language-api-panel.js} +29 -29
- package/dist/components/markdown.js +7 -19
- package/dist/components/useT9n.js +7 -5
- package/dist/components/utilities.js +1 -1
- package/dist/esm/app-globals-59faaf33.js +8 -0
- package/dist/esm/{arcade-defaults-ef553659.js → arcade-defaults-9eb28407.js} +231 -103
- package/dist/esm/{arcade-mode-f534f6f8.js → arcade-mode-5d46035e.js} +37 -37
- package/dist/esm/{arcgis-arcade-api_6.entry.js → arcgis-arcade-editor_6.entry.js} +5128 -5063
- package/dist/esm/arcgis-coding-components.js +15 -13
- package/dist/esm/{css-34fa13c1.js → css-e257dc49.js} +1 -1
- package/dist/esm/{cssMode-8758c994.js → cssMode-c11f7f40.js} +3 -3
- package/dist/esm/{html-c2757f30.js → html-a6c37a99.js} +3 -3
- package/dist/esm/{htmlMode-64bfdd08.js → htmlMode-1270bc7d.js} +3 -3
- package/dist/esm/index-a970952c.js +1272 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/{javascript-7cb6a2cd.js → javascript-ee179624.js} +4 -4
- package/dist/esm/{jsonMode-728cfcab.js → jsonMode-07502ccb.js} +3 -3
- package/dist/esm/loader.js +7 -5
- package/dist/esm/{tsMode-f3c09a15.js → tsMode-96749a12.js} +3 -3
- package/dist/esm/{typescript-a359e263.js → typescript-a3cf9881.js} +3 -3
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/components/{arcade-api/arcade-api.d.ts → language-api-panel/language-api-panel.d.ts} +5 -3
- package/dist/types/components/{arcade-api → language-api-panel}/t9n-types.d.ts +1 -1
- package/dist/types/components.d.ts +57 -53
- package/dist/types/dependencies.d.ts +25 -0
- package/dist/types/utils/arcade-monaco/arcade-contribution.d.ts +1 -24
- package/dist/types/utils/arcade-monaco/arcade-defaults.d.ts +12 -49
- package/dist/types/utils/arcade-monaco/arcade-language-features.d.ts +5 -4
- package/dist/types/utils/arcade-monaco/arcade-mode.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade-service-accessors.d.ts +31 -0
- package/dist/types/utils/arcade-monaco/arcade-worker-manager.d.ts +3 -2
- package/dist/types/utils/arcade-monaco/arcade.worker.d.ts +5 -5
- package/dist/types/utils/arcade-monaco/types.d.ts +6 -35
- package/dist/types/utils/language-defaults-base.d.ts +76 -0
- package/package.json +14 -13
- package/dist/arcgis-coding-components/p-3fb3347e.js +0 -6
- package/dist/arcgis-coding-components/p-52fc1b44.js +0 -7
- package/dist/arcgis-coding-components/p-75571c31.entry.js +0 -6
- package/dist/arcgis-coding-components/p-c07f51a4.js +0 -68
- package/dist/cjs/index-f61a8dce.js +0 -1994
- package/dist/components/arcade-contribution.js +0 -181
- package/dist/components/arcgis-arcade-api.d.ts +0 -11
- package/dist/components/arcgis-arcade-api.js +0 -11
- package/dist/esm/index-7be467d0.js +0 -1963
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ar.json → language-api-panel/t9n/language-api-panel.t9n.ar.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bg.json → language-api-panel/t9n/language-api-panel.t9n.bg.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.bs.json → language-api-panel/t9n/language-api-panel.t9n.bs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ca.json → language-api-panel/t9n/language-api-panel.t9n.ca.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.cs.json → language-api-panel/t9n/language-api-panel.t9n.cs.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.da.json → language-api-panel/t9n/language-api-panel.t9n.da.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.de.json → language-api-panel/t9n/language-api-panel.t9n.de.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.el.json → language-api-panel/t9n/language-api-panel.t9n.el.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.en.json → language-api-panel/t9n/language-api-panel.t9n.en.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.es.json → language-api-panel/t9n/language-api-panel.t9n.es.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.et.json → language-api-panel/t9n/language-api-panel.t9n.et.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fi.json → language-api-panel/t9n/language-api-panel.t9n.fi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.fr.json → language-api-panel/t9n/language-api-panel.t9n.fr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.he.json → language-api-panel/t9n/language-api-panel.t9n.he.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hr.json → language-api-panel/t9n/language-api-panel.t9n.hr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.hu.json → language-api-panel/t9n/language-api-panel.t9n.hu.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.id.json → language-api-panel/t9n/language-api-panel.t9n.id.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.it.json → language-api-panel/t9n/language-api-panel.t9n.it.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ja.json → language-api-panel/t9n/language-api-panel.t9n.ja.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ko.json → language-api-panel/t9n/language-api-panel.t9n.ko.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lt.json → language-api-panel/t9n/language-api-panel.t9n.lt.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.lv.json → language-api-panel/t9n/language-api-panel.t9n.lv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nb.json → language-api-panel/t9n/language-api-panel.t9n.nb.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.nl.json → language-api-panel/t9n/language-api-panel.t9n.nl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pl.json → language-api-panel/t9n/language-api-panel.t9n.pl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-BR.json → language-api-panel/t9n/language-api-panel.t9n.pt-BR.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.pt-PT.json → language-api-panel/t9n/language-api-panel.t9n.pt-PT.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ro.json → language-api-panel/t9n/language-api-panel.t9n.ro.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.ru.json → language-api-panel/t9n/language-api-panel.t9n.ru.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sk.json → language-api-panel/t9n/language-api-panel.t9n.sk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sl.json → language-api-panel/t9n/language-api-panel.t9n.sl.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sr.json → language-api-panel/t9n/language-api-panel.t9n.sr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.sv.json → language-api-panel/t9n/language-api-panel.t9n.sv.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.th.json → language-api-panel/t9n/language-api-panel.t9n.th.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.tr.json → language-api-panel/t9n/language-api-panel.t9n.tr.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.uk.json → language-api-panel/t9n/language-api-panel.t9n.uk.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.vi.json → language-api-panel/t9n/language-api-panel.t9n.vi.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-CN.json → language-api-panel/t9n/language-api-panel.t9n.zh-CN.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-HK.json → language-api-panel/t9n/language-api-panel.t9n.zh-HK.json} +0 -0
- /package/dist/arcgis-coding-components/assets/{arcade-api/t9n/arcade-api.t9n.zh-TW.json → language-api-panel/t9n/language-api-panel.t9n.zh-TW.json} +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stencil.config.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/arcade-editor/editorContext.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/internal/code-editor/code-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/stories/reference/stories/arcade-editor.stories.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-inline-url-importer.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/sass-json-importer.d.ts +0 -0
- /package/dist/types/data/{actions-runner-2 → actions-runner-1}/_work/arcgis-web-components/arcgis-web-components/packages/coding-packages/coding-components/.stencil/support/stencil-monaco-plugins.d.ts +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
* See https://js.arcgis.com/4.31/esri/copyright.txt for details.
|
|
4
|
-
* v4.31.0-next.
|
|
4
|
+
* v4.31.0-next.2
|
|
5
5
|
*/
|
|
6
|
-
import { g as getAssetPath } from './index-
|
|
6
|
+
import { g as getAssetPath } from './index-a970952c.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns the last element of an array.
|
|
@@ -6101,6 +6101,7 @@ const uiMap = new KeyCodeStrMap();
|
|
|
6101
6101
|
const userSettingsUSMap = new KeyCodeStrMap();
|
|
6102
6102
|
const userSettingsGeneralMap = new KeyCodeStrMap();
|
|
6103
6103
|
const EVENT_KEY_CODE_MAP = new Array(230);
|
|
6104
|
+
const NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {};
|
|
6104
6105
|
const scanCodeIntToStr = [];
|
|
6105
6106
|
const scanCodeStrToInt = Object.create(null);
|
|
6106
6107
|
const scanCodeLowerCaseStrToInt = Object.create(null);
|
|
@@ -6389,6 +6390,9 @@ for (let i = 0; i <= 132 /* KeyCode.MAX_VALUE */; i++) {
|
|
|
6389
6390
|
if (eventKeyCode) {
|
|
6390
6391
|
EVENT_KEY_CODE_MAP[eventKeyCode] = keyCode;
|
|
6391
6392
|
}
|
|
6393
|
+
if (vkey) {
|
|
6394
|
+
NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey] = keyCode;
|
|
6395
|
+
}
|
|
6392
6396
|
}
|
|
6393
6397
|
// Manually added due to the exclusion above (due to duplication with NumpadEnter)
|
|
6394
6398
|
IMMUTABLE_KEY_CODE_TO_CODE[3 /* KeyCode.Enter */] = 46 /* ScanCode.Enter */;
|
|
@@ -21850,6 +21854,7 @@ CharacterPairSupport.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS = '\'"`;
|
|
|
21850
21854
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
21851
21855
|
*--------------------------------------------------------------------------------------------*/
|
|
21852
21856
|
const hasBuffer = (typeof Buffer !== 'undefined');
|
|
21857
|
+
new Lazy(() => new Uint8Array(256));
|
|
21853
21858
|
let textDecoder;
|
|
21854
21859
|
class VSBuffer {
|
|
21855
21860
|
/**
|
|
@@ -22760,6 +22765,12 @@ Registry.add(Extensions$7.JSONContribution, jsonContributionRegistry);
|
|
|
22760
22765
|
const Extensions$6 = {
|
|
22761
22766
|
Configuration: 'base.contributions.configuration'
|
|
22762
22767
|
};
|
|
22768
|
+
const allSettings = { properties: {}, patternProperties: {} };
|
|
22769
|
+
const applicationSettings = { properties: {}, patternProperties: {} };
|
|
22770
|
+
const machineSettings = { properties: {}, patternProperties: {} };
|
|
22771
|
+
const machineOverridableSettings = { properties: {}, patternProperties: {} };
|
|
22772
|
+
const windowSettings = { properties: {}, patternProperties: {} };
|
|
22773
|
+
const resourceSettings = { properties: {}, patternProperties: {} };
|
|
22763
22774
|
const resourceLanguageSettingsSchemaId = 'vscode://schemas/settings/resourceLanguage';
|
|
22764
22775
|
const contributionRegistry = Registry.as(Extensions$7.JSONContribution);
|
|
22765
22776
|
class ConfigurationRegistry {
|
|
@@ -22932,18 +22943,25 @@ class ConfigurationRegistry {
|
|
|
22932
22943
|
register(configuration);
|
|
22933
22944
|
}
|
|
22934
22945
|
updateSchema(key, property) {
|
|
22946
|
+
allSettings.properties[key] = property;
|
|
22935
22947
|
switch (property.scope) {
|
|
22936
22948
|
case 1 /* ConfigurationScope.APPLICATION */:
|
|
22949
|
+
applicationSettings.properties[key] = property;
|
|
22937
22950
|
break;
|
|
22938
22951
|
case 2 /* ConfigurationScope.MACHINE */:
|
|
22952
|
+
machineSettings.properties[key] = property;
|
|
22939
22953
|
break;
|
|
22940
22954
|
case 6 /* ConfigurationScope.MACHINE_OVERRIDABLE */:
|
|
22955
|
+
machineOverridableSettings.properties[key] = property;
|
|
22941
22956
|
break;
|
|
22942
22957
|
case 3 /* ConfigurationScope.WINDOW */:
|
|
22958
|
+
windowSettings.properties[key] = property;
|
|
22943
22959
|
break;
|
|
22944
22960
|
case 4 /* ConfigurationScope.RESOURCE */:
|
|
22961
|
+
resourceSettings.properties[key] = property;
|
|
22945
22962
|
break;
|
|
22946
22963
|
case 5 /* ConfigurationScope.LANGUAGE_OVERRIDABLE */:
|
|
22964
|
+
resourceSettings.properties[key] = property;
|
|
22947
22965
|
this.resourceLanguageSettingsSchema.properties[key] = property;
|
|
22948
22966
|
break;
|
|
22949
22967
|
}
|
|
@@ -22958,15 +22976,27 @@ class ConfigurationRegistry {
|
|
|
22958
22976
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22959
22977
|
};
|
|
22960
22978
|
this.updatePropertyDefaultValue(overrideIdentifierProperty, resourceLanguagePropertiesSchema);
|
|
22979
|
+
allSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22980
|
+
applicationSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22981
|
+
machineSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22982
|
+
machineOverridableSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22983
|
+
windowSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22984
|
+
resourceSettings.properties[overrideIdentifierProperty] = resourceLanguagePropertiesSchema;
|
|
22961
22985
|
}
|
|
22962
22986
|
}
|
|
22963
22987
|
registerOverridePropertyPatternKey() {
|
|
22964
|
-
|
|
22988
|
+
const resourceLanguagePropertiesSchema = {
|
|
22965
22989
|
type: 'object',
|
|
22966
22990
|
description: localize('overrideSettings.defaultDescription', "Configure editor settings to be overridden for a language."),
|
|
22967
22991
|
errorMessage: localize('overrideSettings.errorMessage', "This setting does not support per-language configuration."),
|
|
22968
22992
|
$ref: resourceLanguageSettingsSchemaId,
|
|
22969
|
-
}
|
|
22993
|
+
};
|
|
22994
|
+
allSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22995
|
+
applicationSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22996
|
+
machineSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22997
|
+
machineOverridableSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22998
|
+
windowSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22999
|
+
resourceSettings.patternProperties[OVERRIDE_PROPERTY_PATTERN] = resourceLanguagePropertiesSchema;
|
|
22970
23000
|
this._onDidSchemaChange.fire();
|
|
22971
23001
|
}
|
|
22972
23002
|
updatePropertyDefaultValue(key, property) {
|
|
@@ -60172,6 +60202,34 @@ class ExtUri {
|
|
|
60172
60202
|
* ```
|
|
60173
60203
|
*/
|
|
60174
60204
|
const extUri = new ExtUri(() => false);
|
|
60205
|
+
/**
|
|
60206
|
+
* BIASED utility that _mostly_ ignored the case of urs paths. ONLY use this util if you
|
|
60207
|
+
* understand what you are doing.
|
|
60208
|
+
*
|
|
60209
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60210
|
+
*
|
|
60211
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60212
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60213
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60214
|
+
* casing matters.
|
|
60215
|
+
*/
|
|
60216
|
+
new ExtUri(uri => {
|
|
60217
|
+
// A file scheme resource is in the same platform as code, so ignore case for non linux platforms
|
|
60218
|
+
// Resource can be from another platform. Lowering the case as an hack. Should come from File system provider
|
|
60219
|
+
return uri.scheme === Schemas.file ? !isLinux : true;
|
|
60220
|
+
});
|
|
60221
|
+
/**
|
|
60222
|
+
* BIASED utility that always ignores the casing of uris paths. ONLY use this util if you
|
|
60223
|
+
* understand what you are doing.
|
|
60224
|
+
*
|
|
60225
|
+
* This utility is INCOMPATIBLE with `uri.toString()`-usages and both CANNOT be used interchanged.
|
|
60226
|
+
*
|
|
60227
|
+
* When dealing with uris from files or documents, `extUri` (the unbiased friend)is sufficient
|
|
60228
|
+
* because those uris come from a "trustworthy source". When creating unknown uris it's always
|
|
60229
|
+
* better to use `IUriIdentityService` which exposes an `IExtUri`-instance which knows when path
|
|
60230
|
+
* casing matters.
|
|
60231
|
+
*/
|
|
60232
|
+
new ExtUri(_ => true);
|
|
60175
60233
|
const isEqual = extUri.isEqual.bind(extUri);
|
|
60176
60234
|
extUri.isEqualOrParent.bind(extUri);
|
|
60177
60235
|
extUri.getComparisonKey.bind(extUri);
|
|
@@ -105014,6 +105072,20 @@ const intlFileNameCollatorBaseNumeric = new Lazy(() => {
|
|
|
105014
105072
|
collatorIsNumeric: collator.resolvedOptions().numeric
|
|
105015
105073
|
};
|
|
105016
105074
|
});
|
|
105075
|
+
// A collator with numeric sorting enabled.
|
|
105076
|
+
new Lazy(() => {
|
|
105077
|
+
const collator = new Intl.Collator(undefined, { numeric: true });
|
|
105078
|
+
return {
|
|
105079
|
+
collator
|
|
105080
|
+
};
|
|
105081
|
+
});
|
|
105082
|
+
// A collator with numeric sorting enabled, and sensitivity to accents and diacritics but not case.
|
|
105083
|
+
new Lazy(() => {
|
|
105084
|
+
const collator = new Intl.Collator(undefined, { numeric: true, sensitivity: 'accent' });
|
|
105085
|
+
return {
|
|
105086
|
+
collator
|
|
105087
|
+
};
|
|
105088
|
+
});
|
|
105017
105089
|
/** Compares filenames without distinguishing the name from the extension. Disambiguates by unicode comparison. */
|
|
105018
105090
|
function compareFileNames(one, other, caseSensitive = false) {
|
|
105019
105091
|
const a = one || '';
|
|
@@ -120522,7 +120594,7 @@ registerLanguage({
|
|
|
120522
120594
|
mimetypes: ["text/css"],
|
|
120523
120595
|
loader: () => {
|
|
120524
120596
|
{
|
|
120525
|
-
return import('./css-
|
|
120597
|
+
return import('./css-e257dc49.js');
|
|
120526
120598
|
}
|
|
120527
120599
|
}
|
|
120528
120600
|
});
|
|
@@ -120540,7 +120612,7 @@ registerLanguage({
|
|
|
120540
120612
|
mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
|
|
120541
120613
|
loader: () => {
|
|
120542
120614
|
{
|
|
120543
|
-
return import('./html-
|
|
120615
|
+
return import('./html-a6c37a99.js');
|
|
120544
120616
|
}
|
|
120545
120617
|
}
|
|
120546
120618
|
});
|
|
@@ -120560,7 +120632,7 @@ registerLanguage({
|
|
|
120560
120632
|
mimetypes: ["text/javascript"],
|
|
120561
120633
|
loader: () => {
|
|
120562
120634
|
{
|
|
120563
|
-
return import('./javascript-
|
|
120635
|
+
return import('./javascript-ee179624.js');
|
|
120564
120636
|
}
|
|
120565
120637
|
}
|
|
120566
120638
|
});
|
|
@@ -120578,7 +120650,7 @@ registerLanguage({
|
|
|
120578
120650
|
mimetypes: ["text/typescript"],
|
|
120579
120651
|
loader: () => {
|
|
120580
120652
|
{
|
|
120581
|
-
return import('./typescript-
|
|
120653
|
+
return import('./typescript-a3cf9881.js');
|
|
120582
120654
|
}
|
|
120583
120655
|
}
|
|
120584
120656
|
});
|
|
@@ -120697,19 +120769,19 @@ var cssDefaults = new LanguageServiceDefaultsImpl$3("css", optionsDefault$1, mod
|
|
|
120697
120769
|
var scssDefaults = new LanguageServiceDefaultsImpl$3("scss", optionsDefault$1, modeConfigurationDefault$2);
|
|
120698
120770
|
var lessDefaults = new LanguageServiceDefaultsImpl$3("less", optionsDefault$1, modeConfigurationDefault$2);
|
|
120699
120771
|
monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
|
|
120700
|
-
function getMode$
|
|
120772
|
+
function getMode$4() {
|
|
120701
120773
|
{
|
|
120702
|
-
return import('./cssMode-
|
|
120774
|
+
return import('./cssMode-c11f7f40.js');
|
|
120703
120775
|
}
|
|
120704
120776
|
}
|
|
120705
120777
|
monaco_editor_core_exports$3.languages.onLanguage("less", () => {
|
|
120706
|
-
getMode$
|
|
120778
|
+
getMode$4().then((mode) => mode.setupMode(lessDefaults));
|
|
120707
120779
|
});
|
|
120708
120780
|
monaco_editor_core_exports$3.languages.onLanguage("scss", () => {
|
|
120709
|
-
getMode$
|
|
120781
|
+
getMode$4().then((mode) => mode.setupMode(scssDefaults));
|
|
120710
120782
|
});
|
|
120711
120783
|
monaco_editor_core_exports$3.languages.onLanguage("css", () => {
|
|
120712
|
-
getMode$
|
|
120784
|
+
getMode$4().then((mode) => mode.setupMode(cssDefaults));
|
|
120713
120785
|
});
|
|
120714
120786
|
|
|
120715
120787
|
/*!-----------------------------------------------------------------------------
|
|
@@ -120822,16 +120894,16 @@ monaco_editor_core_exports$2.languages.html = {
|
|
|
120822
120894
|
razorLanguageService,
|
|
120823
120895
|
registerHTMLLanguageService
|
|
120824
120896
|
};
|
|
120825
|
-
function getMode$
|
|
120897
|
+
function getMode$3() {
|
|
120826
120898
|
{
|
|
120827
|
-
return import('./htmlMode-
|
|
120899
|
+
return import('./htmlMode-1270bc7d.js');
|
|
120828
120900
|
}
|
|
120829
120901
|
}
|
|
120830
120902
|
function registerHTMLLanguageService(languageId, options = optionsDefault, modeConfiguration = getConfigurationDefault(languageId)) {
|
|
120831
120903
|
const defaults = new LanguageServiceDefaultsImpl$2(languageId, options, modeConfiguration);
|
|
120832
120904
|
let mode;
|
|
120833
120905
|
const onLanguageListener = monaco_editor_core_exports$2.languages.onLanguage(languageId, async () => {
|
|
120834
|
-
mode = (await getMode$
|
|
120906
|
+
mode = (await getMode$3()).setupMode(defaults);
|
|
120835
120907
|
});
|
|
120836
120908
|
return {
|
|
120837
120909
|
defaults,
|
|
@@ -120924,9 +120996,9 @@ var modeConfigurationDefault$1 = {
|
|
|
120924
120996
|
};
|
|
120925
120997
|
var jsonDefaults = new LanguageServiceDefaultsImpl$1("json", diagnosticDefault, modeConfigurationDefault$1);
|
|
120926
120998
|
monaco_editor_core_exports$1.languages.json = { jsonDefaults };
|
|
120927
|
-
function getMode$
|
|
120999
|
+
function getMode$2() {
|
|
120928
121000
|
{
|
|
120929
|
-
return import('./jsonMode-
|
|
121001
|
+
return import('./jsonMode-07502ccb.js');
|
|
120930
121002
|
}
|
|
120931
121003
|
}
|
|
120932
121004
|
monaco_editor_core_exports$1.languages.register({
|
|
@@ -120936,7 +121008,7 @@ monaco_editor_core_exports$1.languages.register({
|
|
|
120936
121008
|
mimetypes: ["application/json"]
|
|
120937
121009
|
});
|
|
120938
121010
|
monaco_editor_core_exports$1.languages.onLanguage("json", () => {
|
|
120939
|
-
getMode$
|
|
121011
|
+
getMode$2().then((mode) => mode.setupMode(jsonDefaults));
|
|
120940
121012
|
});
|
|
120941
121013
|
|
|
120942
121014
|
/*!-----------------------------------------------------------------------------
|
|
@@ -121176,10 +121248,10 @@ var modeConfigurationDefault = {
|
|
|
121176
121248
|
var typescriptDefaults = new LanguageServiceDefaultsImpl({ allowNonTsExtensions: true, target: 99 /* Latest */ }, { noSemanticValidation: false, noSyntaxValidation: false, onlyVisible: false }, {}, {}, modeConfigurationDefault);
|
|
121177
121249
|
var javascriptDefaults = new LanguageServiceDefaultsImpl({ allowNonTsExtensions: true, allowJs: true, target: 99 /* Latest */ }, { noSemanticValidation: true, noSyntaxValidation: false, onlyVisible: false }, {}, {}, modeConfigurationDefault);
|
|
121178
121250
|
var getTypeScriptWorker = () => {
|
|
121179
|
-
return getMode().then((mode) => mode.getTypeScriptWorker());
|
|
121251
|
+
return getMode$1().then((mode) => mode.getTypeScriptWorker());
|
|
121180
121252
|
};
|
|
121181
121253
|
var getJavaScriptWorker = () => {
|
|
121182
|
-
return getMode().then((mode) => mode.getJavaScriptWorker());
|
|
121254
|
+
return getMode$1().then((mode) => mode.getJavaScriptWorker());
|
|
121183
121255
|
};
|
|
121184
121256
|
monaco_editor_core_exports.languages.typescript = {
|
|
121185
121257
|
ModuleKind,
|
|
@@ -121193,16 +121265,16 @@ monaco_editor_core_exports.languages.typescript = {
|
|
|
121193
121265
|
getTypeScriptWorker,
|
|
121194
121266
|
getJavaScriptWorker
|
|
121195
121267
|
};
|
|
121196
|
-
function getMode() {
|
|
121268
|
+
function getMode$1() {
|
|
121197
121269
|
{
|
|
121198
|
-
return import('./tsMode-
|
|
121270
|
+
return import('./tsMode-96749a12.js');
|
|
121199
121271
|
}
|
|
121200
121272
|
}
|
|
121201
121273
|
monaco_editor_core_exports.languages.onLanguage("typescript", () => {
|
|
121202
|
-
return getMode().then((mode) => mode.setupTypeScript(typescriptDefaults));
|
|
121274
|
+
return getMode$1().then((mode) => mode.setupTypeScript(typescriptDefaults));
|
|
121203
121275
|
});
|
|
121204
121276
|
monaco_editor_core_exports.languages.onLanguage("javascript", () => {
|
|
121205
|
-
return getMode().then((mode) => mode.setupJavaScript(javascriptDefaults));
|
|
121277
|
+
return getMode$1().then((mode) => mode.setupJavaScript(javascriptDefaults));
|
|
121206
121278
|
});
|
|
121207
121279
|
|
|
121208
121280
|
/*---------------------------------------------------------------------------------------------
|
|
@@ -166644,21 +166716,13 @@ registerEditorAction(ToggleHighContrast);
|
|
|
166644
166716
|
|
|
166645
166717
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
166646
166718
|
|
|
166647
|
-
function
|
|
166648
|
-
|
|
166649
|
-
path: basedir,
|
|
166650
|
-
exports: {},
|
|
166651
|
-
require: function (path, base) {
|
|
166652
|
-
return commonjsRequire();
|
|
166653
|
-
}
|
|
166654
|
-
}, fn(module, module.exports), module.exports;
|
|
166719
|
+
function commonjsRequire (path) {
|
|
166720
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
166655
166721
|
}
|
|
166656
166722
|
|
|
166657
|
-
|
|
166658
|
-
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
166659
|
-
}
|
|
166723
|
+
var main = {exports: {}};
|
|
166660
166724
|
|
|
166661
|
-
|
|
166725
|
+
(function (module, exports) {
|
|
166662
166726
|
(function (factory) {
|
|
166663
166727
|
{
|
|
166664
166728
|
var v = factory(commonjsRequire, exports);
|
|
@@ -168923,7 +168987,7 @@ var main = createCommonjsModule(function (module, exports) {
|
|
|
168923
168987
|
Is.typedArray = typedArray;
|
|
168924
168988
|
})(Is || (Is = {}));
|
|
168925
168989
|
});
|
|
168926
|
-
});
|
|
168990
|
+
}(main, main.exports));
|
|
168927
168991
|
|
|
168928
168992
|
// src/index.ts
|
|
168929
168993
|
var isAMD = typeof window !== "undefined" && "$arcgis" in window && typeof window.$arcgis === "object" && "import" in window.$arcgis;
|
|
@@ -169208,16 +169272,18 @@ function observeAncestorsMutation(element, attributeFilter, callback) {
|
|
|
169208
169272
|
const { subscribe } = observe(attributeFilter);
|
|
169209
169273
|
return subscribe((mutations) => {
|
|
169210
169274
|
const matched = mutations.some((mutation) => inTargetElement(element, mutation.target));
|
|
169211
|
-
if (matched)
|
|
169275
|
+
if (matched) {
|
|
169212
169276
|
callback();
|
|
169277
|
+
}
|
|
169213
169278
|
});
|
|
169214
169279
|
}
|
|
169215
169280
|
var observers = {};
|
|
169216
169281
|
function observe(attributeFilter) {
|
|
169217
169282
|
const attributes = attributeFilter.join(",");
|
|
169218
169283
|
const previousObserver = observers[attributes];
|
|
169219
|
-
if (previousObserver !== void 0)
|
|
169284
|
+
if (previousObserver !== void 0) {
|
|
169220
169285
|
return previousObserver;
|
|
169286
|
+
}
|
|
169221
169287
|
const subscribers = /* @__PURE__ */ new Set();
|
|
169222
169288
|
const mutationObserver = new MutationObserver((mutations) => subscribers.forEach((callback) => callback(mutations)));
|
|
169223
169289
|
mutationObserver.observe(document.documentElement, {
|
|
@@ -169404,14 +169470,16 @@ async function fetchBundle(locale, path) {
|
|
|
169404
169470
|
const filePath = `${path}${locale}.json`;
|
|
169405
169471
|
try {
|
|
169406
169472
|
const response = await fetch(filePath);
|
|
169407
|
-
if (response.ok)
|
|
169473
|
+
if (response.ok) {
|
|
169408
169474
|
return await response.json();
|
|
169475
|
+
}
|
|
169409
169476
|
} catch (error) {
|
|
169410
169477
|
console.error(error);
|
|
169411
169478
|
return fallbackBundle;
|
|
169412
169479
|
}
|
|
169413
|
-
if (locale === defaultLocale)
|
|
169480
|
+
if (locale === defaultLocale) {
|
|
169414
169481
|
return fallbackBundle;
|
|
169482
|
+
}
|
|
169415
169483
|
return await fetchBundle(defaultLocale, path);
|
|
169416
169484
|
}
|
|
169417
169485
|
var fallbackBundle = new Proxy(
|
|
@@ -169431,8 +169499,9 @@ function getElementLocales(element) {
|
|
|
169431
169499
|
function startLocaleObserver(element, assetsPath, onUpdated, assetName) {
|
|
169432
169500
|
let result = void 0;
|
|
169433
169501
|
const callback = () => void updateComponentLocateState(element, assetsPath, assetName).then((newResult) => {
|
|
169434
|
-
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings)
|
|
169502
|
+
if (result?.lang !== newResult.lang || result.t9nLocale !== newResult.t9nLocale || result.t9nStrings !== newResult.t9nStrings) {
|
|
169435
169503
|
onUpdated(newResult);
|
|
169504
|
+
}
|
|
169436
169505
|
result = newResult;
|
|
169437
169506
|
}).catch(console.error);
|
|
169438
169507
|
callback();
|
|
@@ -169733,7 +169802,7 @@ function getMapPortalItem(map) {
|
|
|
169733
169802
|
}
|
|
169734
169803
|
//#endregion
|
|
169735
169804
|
//#region Editor Profile to Language Service Profile functions
|
|
169736
|
-
async function variablesToLSVariable(editorVariables, kind = main.CompletionItemKind.Variable) {
|
|
169805
|
+
async function variablesToLSVariable(editorVariables, kind = main.exports.CompletionItemKind.Variable) {
|
|
169737
169806
|
return await Promise.all(editorVariables.map(async (editorVariable) => {
|
|
169738
169807
|
switch (editorVariable.type) {
|
|
169739
169808
|
case "dictionary":
|
|
@@ -169756,8 +169825,8 @@ function variableToLSVariable(editorVariable, kind) {
|
|
|
169756
169825
|
label: name,
|
|
169757
169826
|
detail: name,
|
|
169758
169827
|
insertText: name,
|
|
169759
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169760
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169828
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169829
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169761
169830
|
kind,
|
|
169762
169831
|
documentation: { kind: "markdown", value: description },
|
|
169763
169832
|
},
|
|
@@ -169772,8 +169841,8 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169772
169841
|
label: name,
|
|
169773
169842
|
detail: name,
|
|
169774
169843
|
insertText: name,
|
|
169775
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169776
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169844
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169845
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169777
169846
|
kind,
|
|
169778
169847
|
};
|
|
169779
169848
|
const result = {
|
|
@@ -169816,9 +169885,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169816
169885
|
label: field.name,
|
|
169817
169886
|
detail: description,
|
|
169818
169887
|
insertText,
|
|
169819
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169820
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169821
|
-
kind: main.CompletionItemKind.Field,
|
|
169888
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169889
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169890
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169822
169891
|
documentation: { kind: "markdown", value: fieldCompletionDescription },
|
|
169823
169892
|
},
|
|
169824
169893
|
});
|
|
@@ -169838,9 +169907,9 @@ async function featureToLSFeature(editorFeature, kind) {
|
|
|
169838
169907
|
label: field.alias,
|
|
169839
169908
|
detail: field.name,
|
|
169840
169909
|
insertText,
|
|
169841
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169842
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169843
|
-
kind: main.CompletionItemKind.Field,
|
|
169910
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169911
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169912
|
+
kind: main.exports.CompletionItemKind.Field,
|
|
169844
169913
|
documentation: { kind: "markdown", value: aliasCompletionDescription },
|
|
169845
169914
|
},
|
|
169846
169915
|
});
|
|
@@ -169867,13 +169936,13 @@ async function dictionaryToLSDictionary(editorDictionary, kind) {
|
|
|
169867
169936
|
name,
|
|
169868
169937
|
description,
|
|
169869
169938
|
type: "dictionary",
|
|
169870
|
-
properties: await variablesToLSVariable(variables, main.CompletionItemKind.Field),
|
|
169939
|
+
properties: await variablesToLSVariable(variables, main.exports.CompletionItemKind.Field),
|
|
169871
169940
|
completion: {
|
|
169872
169941
|
label: name,
|
|
169873
169942
|
detail: name,
|
|
169874
169943
|
insertText: name,
|
|
169875
|
-
insertTextMode: main.InsertTextMode.asIs,
|
|
169876
|
-
insertTextFormat: main.InsertTextFormat.PlainText,
|
|
169944
|
+
insertTextMode: main.exports.InsertTextMode.asIs,
|
|
169945
|
+
insertTextFormat: main.exports.InsertTextFormat.PlainText,
|
|
169877
169946
|
kind,
|
|
169878
169947
|
documentation: { kind: "markdown", value: completionDescription },
|
|
169879
169948
|
},
|
|
@@ -170947,32 +171016,58 @@ async function convertToEditorProfileDefinition(predefinedProfile, locale = "en"
|
|
|
170947
171016
|
return editorProfile;
|
|
170948
171017
|
}
|
|
170949
171018
|
|
|
170950
|
-
|
|
171019
|
+
/**
|
|
171020
|
+
* Returns the arcade diagnostic service.
|
|
171021
|
+
* Example:
|
|
171022
|
+
* ```ts
|
|
171023
|
+
* const diagnosticService = await getArcadeDiagnosticService();
|
|
171024
|
+
* diagnosticService.onDidChangeDiagnostics(({uri, diaganostics }) => {
|
|
171025
|
+
* // Filter the diagnostics for the uri of interest
|
|
171026
|
+
* // Do something with the diagnostics
|
|
171027
|
+
* });
|
|
171028
|
+
* ```
|
|
171029
|
+
*/
|
|
171030
|
+
async function getArcadeDiagnosticService() {
|
|
171031
|
+
const mode = await getMode();
|
|
171032
|
+
return mode.getArcadeDiagnosticService();
|
|
171033
|
+
}
|
|
171034
|
+
/**
|
|
171035
|
+
* Returns the arcade worker for the model.
|
|
171036
|
+
* Example:
|
|
171037
|
+
* ```ts
|
|
171038
|
+
* const arcadeWorker = await getArcadeWorker(model.uri);
|
|
171039
|
+
* ```
|
|
171040
|
+
* @returns arcade worker
|
|
171041
|
+
*/
|
|
171042
|
+
async function getArcadeWorker(uri) {
|
|
171043
|
+
const mode = await getMode();
|
|
171044
|
+
return await mode.getArcadeWorker(uri);
|
|
171045
|
+
}
|
|
171046
|
+
/**
|
|
171047
|
+
* Request the arcade mode
|
|
171048
|
+
* @returns arcade mode module
|
|
171049
|
+
*/
|
|
171050
|
+
async function getMode() {
|
|
171051
|
+
return await import('./arcade-mode-5d46035e.js');
|
|
171052
|
+
}
|
|
171053
|
+
|
|
171054
|
+
// this file contains the building blocks for a language default provider
|
|
170951
171055
|
const defaultContext = {
|
|
170952
171056
|
locale: "en",
|
|
170953
171057
|
};
|
|
170954
|
-
class
|
|
171058
|
+
class LanguageDefaultsBase {
|
|
170955
171059
|
constructor() {
|
|
170956
|
-
|
|
170957
|
-
|
|
171060
|
+
// #endregion
|
|
171061
|
+
// #region Protected properties
|
|
170958
171062
|
this._onDidChange = new Emitter();
|
|
170959
171063
|
this._profileMap = new Map();
|
|
170960
171064
|
this._apiContextMap = new Map();
|
|
170961
171065
|
this._onModelContextDidChange = new Emitter();
|
|
170962
171066
|
this._onDidModelContextChangeTimeout = -1;
|
|
171067
|
+
// #endregion
|
|
170963
171068
|
}
|
|
170964
|
-
|
|
170965
|
-
|
|
170966
|
-
}
|
|
170967
|
-
get onModelContextDidChange() {
|
|
170968
|
-
return this._onModelContextDidChange.event;
|
|
170969
|
-
}
|
|
170970
|
-
get languageId() {
|
|
170971
|
-
return this._languageId;
|
|
170972
|
-
}
|
|
170973
|
-
get languageOptions() {
|
|
170974
|
-
return this._languageOptions;
|
|
170975
|
-
}
|
|
171069
|
+
// #endregion
|
|
171070
|
+
// #region Protected methods
|
|
170976
171071
|
_fireModelContextDidChange(key) {
|
|
170977
171072
|
if (this._onDidModelContextChangeTimeout !== -1) {
|
|
170978
171073
|
return;
|
|
@@ -170988,35 +171083,13 @@ class ArcadeLanguageServiceDefaults {
|
|
|
170988
171083
|
}
|
|
170989
171084
|
return modelId.toString();
|
|
170990
171085
|
}
|
|
170991
|
-
|
|
170992
|
-
|
|
170993
|
-
|
|
170994
|
-
|
|
170995
|
-
|
|
170996
|
-
|
|
170997
|
-
|
|
170998
|
-
* @param locale The locale to use for the model context.
|
|
170999
|
-
* @returns The EditorProfile for the model.
|
|
171000
|
-
*/
|
|
171001
|
-
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
171002
|
-
// Convert pre-defined profile to a runtime profile
|
|
171003
|
-
if (isPredefinedProfile(definition)) {
|
|
171004
|
-
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
171005
|
-
}
|
|
171006
|
-
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
171007
|
-
if (!intlStrings) {
|
|
171008
|
-
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
171009
|
-
}
|
|
171010
|
-
this.disposeEditorProfileForModel(modelId);
|
|
171011
|
-
const key = this._getApiKey(modelId);
|
|
171012
|
-
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
171013
|
-
this._profileMap.set(key, editorProfile);
|
|
171014
|
-
const apiProfile = await editorProfile.toLSProfile();
|
|
171015
|
-
this.updateApiContextForModel(modelId, {
|
|
171016
|
-
locale: apiContext.locale,
|
|
171017
|
-
profile: apiProfile,
|
|
171018
|
-
snippets: apiContext.snippets,
|
|
171019
|
-
});
|
|
171086
|
+
// #endregion
|
|
171087
|
+
// #region Public methods
|
|
171088
|
+
get onDidChange() {
|
|
171089
|
+
return this._onDidChange.event;
|
|
171090
|
+
}
|
|
171091
|
+
get languageOptions() {
|
|
171092
|
+
return this._languageOptions;
|
|
171020
171093
|
}
|
|
171021
171094
|
/**
|
|
171022
171095
|
* Dispose the editor profile for the given model id.
|
|
@@ -171065,6 +171138,51 @@ class ArcadeLanguageServiceDefaults {
|
|
|
171065
171138
|
this._apiContextMap.set(key, { ...currentApiContext, ...apiContext });
|
|
171066
171139
|
this._fireModelContextDidChange(key);
|
|
171067
171140
|
}
|
|
171141
|
+
get onModelContextDidChange() {
|
|
171142
|
+
return this._onModelContextDidChange.event;
|
|
171143
|
+
}
|
|
171144
|
+
get languageId() {
|
|
171145
|
+
return this._languageId;
|
|
171146
|
+
}
|
|
171147
|
+
}
|
|
171148
|
+
|
|
171149
|
+
const arcadeLanguageId = "arcade";
|
|
171150
|
+
class ArcadeLanguageServiceDefaults extends LanguageDefaultsBase {
|
|
171151
|
+
constructor() {
|
|
171152
|
+
super(...arguments);
|
|
171153
|
+
this._languageId = arcadeLanguageId;
|
|
171154
|
+
this._languageOptions = {};
|
|
171155
|
+
}
|
|
171156
|
+
/**
|
|
171157
|
+
* Create an EditorProfile for the given model id using the given definition and locale.
|
|
171158
|
+
* The EditorProfile is used by the the Arcade Language service as well by the cosing components.
|
|
171159
|
+
* The definition can be a pre-defined profile or an editor profile definition.
|
|
171160
|
+
* If the locale is not provided then the 'en' locale is used.
|
|
171161
|
+
* @param modelId The model id for which to create the context.
|
|
171162
|
+
* @param definition The definition to use for the model context.
|
|
171163
|
+
* @param locale The locale to use for the model context.
|
|
171164
|
+
* @returns The EditorProfile for the model.
|
|
171165
|
+
*/
|
|
171166
|
+
async setProfileForModel(modelId, definition, apiContext = { locale: "en" }) {
|
|
171167
|
+
// Convert pre-defined profile to a runtime profile
|
|
171168
|
+
if (isPredefinedProfile(definition)) {
|
|
171169
|
+
definition = await convertToEditorProfileDefinition(definition, apiContext.locale);
|
|
171170
|
+
}
|
|
171171
|
+
const intlStrings = await fetchT9NStringsBundle(apiContext.locale, getAssetPath("./assets/arcade-language/t9n"), "profile.t9n.");
|
|
171172
|
+
if (!intlStrings) {
|
|
171173
|
+
throw new Error(`Failed to load the language bundle for ${apiContext.locale}`);
|
|
171174
|
+
}
|
|
171175
|
+
this.disposeEditorProfileForModel(modelId);
|
|
171176
|
+
const key = this._getApiKey(modelId);
|
|
171177
|
+
const editorProfile = new EditorProfile(definition, intlStrings);
|
|
171178
|
+
this._profileMap.set(key, editorProfile);
|
|
171179
|
+
const apiProfile = await editorProfile.toLSProfile();
|
|
171180
|
+
this.updateApiContextForModel(modelId, {
|
|
171181
|
+
locale: apiContext.locale,
|
|
171182
|
+
profile: apiProfile,
|
|
171183
|
+
snippets: apiContext.snippets,
|
|
171184
|
+
});
|
|
171185
|
+
}
|
|
171068
171186
|
/**
|
|
171069
171187
|
* Set or update the Arcade language service options.
|
|
171070
171188
|
* @param languageOptions The language options to set.
|
|
@@ -171079,10 +171197,20 @@ class ArcadeLanguageServiceDefaults {
|
|
|
171079
171197
|
this._languageOptions = { ...this._languageOptions, ...languageOptions };
|
|
171080
171198
|
this._onDidChange.fire(this);
|
|
171081
171199
|
}
|
|
171200
|
+
/**
|
|
171201
|
+
* Gets the API library for the given model id.
|
|
171202
|
+
* @param modelId The model id for which to get the API library.
|
|
171203
|
+
* @returns The API library for the model.
|
|
171204
|
+
*/
|
|
171205
|
+
async getApiLibrary(modelId) {
|
|
171206
|
+
const uri = Uri.parse(modelId);
|
|
171207
|
+
const worker = await getArcadeWorker(uri);
|
|
171208
|
+
return await worker.getApiLibrary(this.getApiContextForModel(uri));
|
|
171209
|
+
}
|
|
171082
171210
|
}
|
|
171083
171211
|
const arcadeDefaults = new ArcadeLanguageServiceDefaults();
|
|
171084
171212
|
const arcade = {
|
|
171085
171213
|
setProfileForModel: arcadeDefaults.setProfileForModel.bind(arcadeDefaults),
|
|
171086
171214
|
};
|
|
171087
171215
|
|
|
171088
|
-
export { observeAncestorsMutation as A, KeyMod as B,
|
|
171216
|
+
export { observeAncestorsMutation as A, KeyMod as B, addLTRMark as C, Deferred as D, monaco_editor_core_star as E, typescriptDefaults as F, main as G, debounce as H, IStandaloneThemeService as I, Emitter as J, KeyCode as K, MarkerSeverity as M, Range as R, StandaloneServices as S, Uri as U, arcade as a, safeAsyncCall as b, camelToKebab as c, devToolsAwareTimeout as d, editor as e, startLocaleObserver as f, getElementLocales as g, isURL as h, importArcade as i, hasSameOrigin as j, importRequest as k, generateGuid as l, arcadeDefaults as m, getElementTheme as n, getArcadeDiagnosticService as o, setValuesInString as p, quoteString as q, supportedFields as r, safeCall as s, generateTokensCSSForColorMap as t, commonjsGlobal as u, setFocusOnElement as v, filterCollection as w, createFilterExpression as x, languages as y, getMode as z };
|