@codingame/monaco-editor-wrapper 1.1.3 → 1.2.1
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/JavaScriptReact.tmLanguage.js +5894 -0
- package/dist/TypeScriptReact.tmLanguage.js +5894 -0
- package/dist/aspnetcorerazor.tmLanguage.js +65 -83
- package/dist/css.worker.js +1 -1
- package/dist/d2.js +92 -34
- package/dist/extensionConfigurations.js +1167 -1414
- package/dist/html.tmLanguage2.js +11 -1
- package/dist/html.worker.js +1 -1
- package/dist/json.worker.js +1 -1
- package/dist/jsonContribution.js +46 -40
- package/dist/languages/extensions/configurationLoader.d.ts +13 -1
- package/dist/languages/extensions/grammarLoader.d.ts +26206 -17207
- package/dist/languages/extensions/snippetLoader.d.ts +0 -12
- package/dist/lua.tmLanguage.js +12 -2
- package/dist/main.js +135 -29
- package/dist/markdown.tmLanguage.js +91 -14
- package/dist/pascal.tmLanguage.js +2 -2
- package/dist/php.tmLanguage.js +161 -96
- package/dist/r2.js +17 -29
- package/dist/sql.js +89 -2
- package/dist/sql.tmLanguage.js +532 -0
- package/dist/ts.worker.js +1 -1
- package/dist/worker.js +1 -1
- package/package.json +3 -2
- package/stats.html +1 -1
- package/dist/SQL.plist.js +0 -482
- package/dist/html (eex).js +0 -31
- package/dist/pgsql-sql.js +0 -21
- package/dist/r.tmLanguage.js +0 -551
package/dist/jsonContribution.js
CHANGED
|
@@ -3,11 +3,11 @@ import 'monaco-editor/esm/vs/language/json/monaco.contribution';
|
|
|
3
3
|
import * as monaco from 'monaco-editor/esm/vs/editor/edcore.main';
|
|
4
4
|
import { r as registerWorkerLoader } from './worker.js';
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const registry = monaco.extra.Registry.as(monaco.extra.JsonContributionExtensions.JSONContribution); // Hack because the commands are filled by a code not run in monaco-editor
|
|
7
7
|
|
|
8
8
|
{
|
|
9
9
|
const allCommands = monaco.extra.CommandsRegistry.getCommands();
|
|
10
|
-
const keybindingsCommandSchema =
|
|
10
|
+
const keybindingsCommandSchema = registry.getSchemaContributions().schemas['vscode://schemas/keybindings'].items.properties.command.anyOf[0];
|
|
11
11
|
keybindingsCommandSchema.enum = Array.from(allCommands.keys());
|
|
12
12
|
keybindingsCommandSchema.enumDescriptions = Array.from(allCommands.values()).map(command => {
|
|
13
13
|
var _command$description;
|
|
@@ -32,44 +32,50 @@ const vimKeybindingsSchema = {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
35
|
+
|
|
36
|
+
function updateDiagnosticsOptions() {
|
|
37
|
+
monaco.languages.json.jsonDefaults.setDiagnosticsOptions({
|
|
38
|
+
comments: 'ignore',
|
|
39
|
+
validate: true,
|
|
40
|
+
schemas: [{
|
|
41
|
+
uri: 'vscode://schemas/settings/resourceLanguage',
|
|
42
|
+
schema: registry.getSchemaContributions().schemas['vscode://schemas/settings/resourceLanguage']
|
|
43
|
+
}, {
|
|
44
|
+
uri: 'vscode://schemas/keybindings',
|
|
45
|
+
fileMatch: ['file:///keybindings.json'],
|
|
46
|
+
schema: registry.getSchemaContributions().schemas['vscode://schemas/keybindings']
|
|
47
|
+
}, {
|
|
48
|
+
uri: 'vscode://schemas/settings/user',
|
|
49
|
+
fileMatch: ['file:///settings.json'],
|
|
50
|
+
schema: {
|
|
51
|
+
properties: _objectSpread2(_objectSpread2({}, monaco.extra.allSettings.properties), {}, {
|
|
52
|
+
'vim.normalModeKeyBindings': {
|
|
53
|
+
type: 'array',
|
|
54
|
+
description: 'Remapped keys in Normal mode.',
|
|
55
|
+
items: vimKeybindingsSchema
|
|
56
|
+
},
|
|
57
|
+
'vim.insertModeKeyBindings': {
|
|
58
|
+
type: 'array',
|
|
59
|
+
description: 'Remapped keys in Insert mode.',
|
|
60
|
+
items: vimKeybindingsSchema
|
|
61
|
+
},
|
|
62
|
+
'vim.visualModeKeyBindings': {
|
|
63
|
+
type: 'array',
|
|
64
|
+
description: 'Remapped keys in Visual mode.',
|
|
65
|
+
items: vimKeybindingsSchema
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
68
|
+
patternProperties: monaco.extra.allSettings.patternProperties,
|
|
69
|
+
additionalProperties: true,
|
|
70
|
+
allowTrailingCommas: true,
|
|
71
|
+
allowComments: true
|
|
72
|
+
}
|
|
73
|
+
}]
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
updateDiagnosticsOptions();
|
|
78
|
+
registry.onDidChangeSchema(updateDiagnosticsOptions);
|
|
73
79
|
|
|
74
80
|
const workerLoader = async () => (await import(
|
|
75
81
|
/* webpackChunkName: "MonacoJsonWorker" */
|
|
@@ -668,6 +668,19 @@ declare const _default: {
|
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
670
|
}>;
|
|
671
|
+
sql: () => Promise<{
|
|
672
|
+
comments: {
|
|
673
|
+
lineComment: string;
|
|
674
|
+
blockComment: string[];
|
|
675
|
+
};
|
|
676
|
+
brackets: string[][];
|
|
677
|
+
autoClosingPairs: (string[] | {
|
|
678
|
+
open: string;
|
|
679
|
+
close: string;
|
|
680
|
+
notIn: string[];
|
|
681
|
+
})[];
|
|
682
|
+
surroundingPairs: string[][];
|
|
683
|
+
}>;
|
|
671
684
|
swift: () => Promise<{
|
|
672
685
|
comments: {
|
|
673
686
|
lineComment: string;
|
|
@@ -1078,7 +1091,6 @@ declare const _default: {
|
|
|
1078
1091
|
};
|
|
1079
1092
|
};
|
|
1080
1093
|
}>;
|
|
1081
|
-
sql: () => Promise<{}>;
|
|
1082
1094
|
scala: () => Promise<{
|
|
1083
1095
|
comments: {
|
|
1084
1096
|
lineComment: string;
|