@codingame/monaco-editor-wrapper 2.2.2 → 3.0.0
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 +1 -3
- package/dist/_monaco-editor_commonjs-external.js +32 -0
- package/dist/configuration/index.d.ts +3 -3
- package/dist/css.worker.js +1 -1
- package/dist/features/extensionConfigurations.js +1 -2
- package/dist/features/htmlContribution.js +7 -7
- package/dist/features/jsonContribution.js +6 -66
- package/dist/features/typescriptContribution.d.ts +0 -4
- package/dist/features/typescriptContribution.js +1 -29
- package/dist/hacks.d.ts +15 -2
- package/dist/html.worker.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +64 -12
- package/dist/index2.js +2207 -0
- package/dist/json.worker.js +1 -1
- package/dist/keybindings/index.d.ts +1 -1
- package/dist/languages/extensions/extensionConfigurationLoader.d.ts +2 -2
- package/dist/languages/extensions/languageConfigurationLoader.d.ts +1 -10
- package/dist/languages/extensions/snippetLoader.d.ts +1 -2
- package/dist/languages/extensions/themeLoader.d.ts +1 -2
- package/dist/languages/index.d.ts +1 -0
- package/dist/languages/textMate/index.d.ts +0 -2
- package/dist/main.js +134 -12531
- package/dist/monaco.d.ts +2 -2
- package/dist/theme/index.d.ts +2 -2
- package/dist/ts.worker.js +1 -1
- package/dist/vim.js +9699 -0
- package/dist/worker.js +1 -1
- package/package.json +26 -25
- package/stats.html +1451 -106
- package/dist/_rollupPluginBabelHelpers.js +0 -42
- package/dist/keybindings/keybindingHelper.d.ts +0 -2
- package/dist/languages/monarch/index.d.ts +0 -7
- package/dist/languages/monarch/stub-generator.d.ts +0 -2
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
- package/dist/languages/textMate/CGTMTokenizationSupport.d.ts +0 -8
- package/dist/stub-generator.js +0 -15
- package/dist/theme/registry.d.ts +0 -9
- package/dist/theme/semanticHighlight.d.ts +0 -1
- package/dist/theme/tools.d.ts +0 -12
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,5 @@ import { defineVSCodeTheme } from './theme';
|
|
|
4
4
|
import { updateUserConfiguration, registerConfigurations, registerDefaultConfigurations, onConfigurationChanged, getConfiguration } from './configuration';
|
|
5
5
|
import { getMonacoLanguage, loadLanguage } from './languages';
|
|
6
6
|
import { updateKeybindings, updateEditorKeybindingsMode } from './keybindings';
|
|
7
|
-
import { getThemeData, getThemes } from './theme/registry';
|
|
8
|
-
import type { IVSCodeTheme } from './theme/tools';
|
|
9
7
|
export * from './tools';
|
|
10
|
-
export { monaco, createEditor, defineVSCodeTheme,
|
|
11
|
-
export type { IVSCodeTheme };
|
|
8
|
+
export { monaco, createEditor, defineVSCodeTheme, registerConfigurations, registerDefaultConfigurations, updateUserConfiguration, getConfiguration, onConfigurationChanged, updateEditorKeybindingsMode, updateKeybindings, getMonacoLanguage, registerTextModelContentProvider, registerEditorOpenHandler, loadLanguage };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,46 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { StandaloneServices, IConfigurationService } from 'vscode/services';
|
|
2
|
+
import { configurationRegistry, ConfigurationScope } from 'vscode/service-override/configuration';
|
|
3
|
+
|
|
4
|
+
function ownKeys(object, enumerableOnly) {
|
|
5
|
+
var keys = Object.keys(object);
|
|
6
|
+
|
|
7
|
+
if (Object.getOwnPropertySymbols) {
|
|
8
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
11
|
+
})), keys.push.apply(keys, symbols);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return keys;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _objectSpread2(target) {
|
|
18
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
19
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
20
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
21
|
+
_defineProperty(target, key, source[key]);
|
|
22
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
23
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) {
|
|
31
|
+
if (key in obj) {
|
|
32
|
+
Object.defineProperty(obj, key, {
|
|
33
|
+
value: value,
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true
|
|
37
|
+
});
|
|
38
|
+
} else {
|
|
39
|
+
obj[key] = value;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return obj;
|
|
43
|
+
}
|
|
5
44
|
|
|
6
45
|
var configurationDefaults = {
|
|
7
46
|
"[go]": {
|
|
@@ -1219,7 +1258,6 @@ var extensions = {
|
|
|
1219
1258
|
semanticTokenModifiers: semanticTokenModifiers
|
|
1220
1259
|
};
|
|
1221
1260
|
|
|
1222
|
-
const configurationRegistry$1 = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
|
|
1223
1261
|
/**
|
|
1224
1262
|
* comes from https://github.com/microsoft/vscode/blob/16d0a319b28caa4b6cf4e6801fd508282b7533e0/src/vs/workbench/contrib/files/browser/files.contribution.ts#L132
|
|
1225
1263
|
* files.exclude and files.associations are required by the Lua language server
|
|
@@ -1227,11 +1265,10 @@ const configurationRegistry$1 = monaco.extra.Registry.as(monaco.extra.Configurat
|
|
|
1227
1265
|
|
|
1228
1266
|
const FILES_EXCLUDE_CONFIG = 'files.exclude';
|
|
1229
1267
|
const FILES_ASSOCIATIONS_CONFIG = 'files.associations';
|
|
1230
|
-
const ConfigurationScope = monaco.extra.ConfigurationScope;
|
|
1231
1268
|
const nls = {
|
|
1232
1269
|
localize: (key, defaultValue) => defaultValue
|
|
1233
1270
|
};
|
|
1234
|
-
configurationRegistry
|
|
1271
|
+
configurationRegistry.registerConfiguration({
|
|
1235
1272
|
id: 'files',
|
|
1236
1273
|
order: 9,
|
|
1237
1274
|
title: 'Files',
|
|
@@ -1289,26 +1326,41 @@ configurationRegistry$1.registerConfiguration({
|
|
|
1289
1326
|
}
|
|
1290
1327
|
});
|
|
1291
1328
|
|
|
1292
|
-
const configurationRegistry = monaco.extra.Registry.as(monaco.extra.ConfigurationExtensions.Configuration);
|
|
1293
1329
|
configurationRegistry.registerDefaultConfigurations([{
|
|
1294
1330
|
overrides: {
|
|
1295
1331
|
'editor.codeLens': false,
|
|
1296
1332
|
'editor.fontSize': 12,
|
|
1297
1333
|
'editor.maxTokenizationLineLength': 1000,
|
|
1298
1334
|
'editor.quickSuggestions': false,
|
|
1299
|
-
'files.eol': '\n'
|
|
1335
|
+
'files.eol': '\n',
|
|
1336
|
+
'editor.semanticTokenColorCustomizations': {
|
|
1337
|
+
rules: {
|
|
1338
|
+
'*.static': {
|
|
1339
|
+
fontStyle: 'italic'
|
|
1340
|
+
},
|
|
1341
|
+
'*.final.static': {
|
|
1342
|
+
fontStyle: 'italic bold'
|
|
1343
|
+
},
|
|
1344
|
+
'*.readonly': {
|
|
1345
|
+
fontStyle: 'bold'
|
|
1346
|
+
},
|
|
1347
|
+
'*.deprecated': {
|
|
1348
|
+
fontStyle: 'strikethrough'
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
}
|
|
1300
1352
|
}
|
|
1301
1353
|
}]);
|
|
1302
1354
|
configurationRegistry.registerDefaultConfigurations([{
|
|
1303
1355
|
overrides: extensions.configurationDefaults
|
|
1304
1356
|
}]);
|
|
1305
1357
|
function onConfigurationChanged(listener) {
|
|
1306
|
-
const configurationService =
|
|
1358
|
+
const configurationService = StandaloneServices.get(IConfigurationService);
|
|
1307
1359
|
return configurationService.onDidChangeConfiguration(listener);
|
|
1308
1360
|
}
|
|
1309
1361
|
function getConfiguration(language) {
|
|
1310
1362
|
let section = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'editor';
|
|
1311
|
-
const configurationService =
|
|
1363
|
+
const configurationService = StandaloneServices.get(IConfigurationService);
|
|
1312
1364
|
return configurationService.getValue(section, {
|
|
1313
1365
|
overrideIdentifier: language
|
|
1314
1366
|
});
|
|
@@ -1322,4 +1374,4 @@ function registerDefaultConfigurations(defaultConfigurations) {
|
|
|
1322
1374
|
})));
|
|
1323
1375
|
}
|
|
1324
1376
|
|
|
1325
|
-
export {
|
|
1377
|
+
export { _objectSpread2 as _, _defineProperty as a, registerDefaultConfigurations as b, extensions as e, getConfiguration as g, onConfigurationChanged as o, registerConfigurations as r };
|