@codingame/monaco-editor-wrapper 1.7.0 → 1.8.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/dist/Groovy2.js +28 -0
- package/dist/features/mutualizedExtensionConfigurations.d.ts +1 -0
- package/dist/features/mutualizedExtensionConfigurations.js +4857 -0
- package/dist/languages/extensions/configurationLoader.d.ts +20 -2
- package/dist/languages/index.d.ts +2 -1
- package/dist/languages/textMate/index.d.ts +1 -1
- package/dist/main.js +26 -10
- package/dist/markdown-basics-markdown.js +18 -0
- package/dist/services/CustomFoldingRulesLanguageConfigurationService.d.ts +4 -0
- package/dist/verilog-systemverilog.js +140 -327
- package/dist/verilog2.js +65 -56
- package/dist/vscode-R-rmd.js +2 -2
- package/package.json +1 -2
- package/stats.html +1 -1
- package/dist/COBOL Copybook2.js +0 -2017
- package/dist/COBOL2.js +0 -2017
- package/dist/SQL.plist.js +0 -482
- package/dist/bsv2.js +0 -49
- package/dist/c2.js +0 -18
- package/dist/coffeescript2.js +0 -18
- package/dist/configuration/hack.d.ts +0 -2
- package/dist/cpp2.js +0 -18
- package/dist/csharp2.js +0 -508
- package/dist/cssContribution.js +0 -10
- package/dist/diet3.js +0 -92
- package/dist/extensionConfigurations.js +0 -9475
- package/dist/fsharp2.js +0 -18
- package/dist/groovy2.js +0 -229
- package/dist/html (eex).js +0 -31
- package/dist/htmlContribution.js +0 -10
- package/dist/javascript2.js +0 -196
- package/dist/javascriptreact2.js +0 -196
- package/dist/jsonContribution.js +0 -78
- package/dist/kotlin2.js +0 -117
- package/dist/kotlinscript2.js +0 -117
- package/dist/languages/monarch/list.d.ts +0 -7
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
- package/dist/markdown-basics.js +0 -103
- package/dist/markdown2.js +0 -103
- package/dist/pgsql-sql.js +0 -21
- package/dist/pgsql.js +0 -21
- package/dist/php2.js +0 -265
- package/dist/powershell2.js +0 -18
- package/dist/r.tmLanguage.js +0 -572
- package/dist/reason2.js +0 -100
- package/dist/services/functional.d.ts +0 -1
- package/dist/services/lyfecycle.d.ts +0 -13
- package/dist/sql2.js +0 -21
- package/dist/swift2.js +0 -183
- package/dist/systemverilog2.js +0 -208
- package/dist/tcl2.js +0 -151
- package/dist/typescript-basics.js +0 -312
- package/dist/typescript2.js +0 -312
- package/dist/typescriptContribution.js +0 -36
- package/dist/typescriptreact2.js +0 -312
- package/dist/vb2.js +0 -88
|
@@ -668,6 +668,25 @@ 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
|
+
folding: {
|
|
684
|
+
markers: {
|
|
685
|
+
start: string;
|
|
686
|
+
end: string;
|
|
687
|
+
};
|
|
688
|
+
};
|
|
689
|
+
}>;
|
|
671
690
|
swift: () => Promise<{
|
|
672
691
|
comments: {
|
|
673
692
|
lineComment: string;
|
|
@@ -1078,7 +1097,6 @@ declare const _default: {
|
|
|
1078
1097
|
};
|
|
1079
1098
|
};
|
|
1080
1099
|
}>;
|
|
1081
|
-
sql: () => Promise<{}>;
|
|
1082
1100
|
scala: () => Promise<{
|
|
1083
1101
|
comments: {
|
|
1084
1102
|
lineComment: string;
|
|
@@ -1288,7 +1306,7 @@ declare const _default: {
|
|
|
1288
1306
|
}>;
|
|
1289
1307
|
rmd: () => Promise<{
|
|
1290
1308
|
comments: {
|
|
1291
|
-
|
|
1309
|
+
blockComment: string[];
|
|
1292
1310
|
};
|
|
1293
1311
|
brackets: string[][];
|
|
1294
1312
|
autoClosingPairs: string[][];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as monaco from 'monaco-editor';
|
|
2
2
|
import './semanticTokens';
|
|
3
|
-
export declare function
|
|
3
|
+
export declare function getOrCreateTextMateTokensProvider(languageId: string): Promise<monaco.languages.ITokenizationSupport>;
|
package/dist/main.js
CHANGED
|
@@ -2477,6 +2477,7 @@ function getOrCreateGrammarFactory() {
|
|
|
2477
2477
|
}
|
|
2478
2478
|
|
|
2479
2479
|
const languageService$2 = monaco.extra.StandaloneServices.get(monaco.languages.ILanguageService);
|
|
2480
|
+
|
|
2480
2481
|
async function createTextMateTokensProvider(languageId) {
|
|
2481
2482
|
const grammarFactory = getOrCreateGrammarFactory();
|
|
2482
2483
|
const encodedLanguageId = languageService$2.languageIdCodec.encodeLanguageId(languageId);
|
|
@@ -2498,6 +2499,18 @@ async function createTextMateTokensProvider(languageId) {
|
|
|
2498
2499
|
return new CGTMTokenizationSupport(languageId, encodedLanguageId, tokenization, grammar);
|
|
2499
2500
|
}
|
|
2500
2501
|
|
|
2502
|
+
const tokenizationSupports = new Map();
|
|
2503
|
+
function getOrCreateTextMateTokensProvider(languageId) {
|
|
2504
|
+
let tokenizationSupportPromise = tokenizationSupports.get(languageId);
|
|
2505
|
+
|
|
2506
|
+
if (tokenizationSupportPromise == null) {
|
|
2507
|
+
tokenizationSupportPromise = createTextMateTokensProvider(languageId);
|
|
2508
|
+
tokenizationSupports.set(languageId, tokenizationSupportPromise);
|
|
2509
|
+
}
|
|
2510
|
+
|
|
2511
|
+
return tokenizationSupportPromise;
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2501
2514
|
var textMateLanguages = [
|
|
2502
2515
|
{
|
|
2503
2516
|
"id": "clojure",
|
|
@@ -4249,7 +4262,7 @@ for (const languageId of languagesIds) {
|
|
|
4249
4262
|
});
|
|
4250
4263
|
monaco.languages.setTokenizationSupportFactory(languageId, {
|
|
4251
4264
|
createTokenizationSupport: async () => {
|
|
4252
|
-
return
|
|
4265
|
+
return getOrCreateTextMateTokensProvider(languageId).catch(err => {
|
|
4253
4266
|
const monarchLoader = languageLoader[languageId];
|
|
4254
4267
|
|
|
4255
4268
|
if (monarchLoader != null) {
|
|
@@ -4284,20 +4297,23 @@ function parseLanguageConfiguration(config) {
|
|
|
4284
4297
|
});
|
|
4285
4298
|
}
|
|
4286
4299
|
|
|
4300
|
+
async function loadLanguageConfiguration(languageId) {
|
|
4301
|
+
const loader = loader$1[languageId];
|
|
4302
|
+
|
|
4303
|
+
if (loader != null) {
|
|
4304
|
+
const configuration = await loader();
|
|
4305
|
+
monaco.extra.handleLanguageConfiguration(languageId, addCustomFoldingMarkers(parseLanguageConfiguration(configuration)));
|
|
4306
|
+
}
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4287
4309
|
languageService.onDidEncounterLanguage(async languageId => {
|
|
4288
4310
|
if (languageId === 'plaintext') {
|
|
4289
4311
|
return;
|
|
4290
4312
|
}
|
|
4291
4313
|
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
loader().then(configuration => {
|
|
4296
|
-
monaco.extra.handleLanguageConfiguration(languageId, addCustomFoldingMarkers(parseLanguageConfiguration(configuration)));
|
|
4297
|
-
}).catch(error => {
|
|
4298
|
-
console.error('Unable to load language configuration', error);
|
|
4299
|
-
});
|
|
4300
|
-
}
|
|
4314
|
+
loadLanguageConfiguration(languageId).catch(error => {
|
|
4315
|
+
console.error('Unable to load language configuration', error);
|
|
4316
|
+
});
|
|
4301
4317
|
});
|
|
4302
4318
|
|
|
4303
4319
|
function getMonacoLanguage(languageOrModeId) {
|
|
@@ -97,6 +97,24 @@ var markdownBasicsMarkdown = {
|
|
|
97
97
|
prefix: "strikethrough",
|
|
98
98
|
body: "~~${1:${TM_SELECTED_TEXT}}~~",
|
|
99
99
|
description: "Insert strikethrough"
|
|
100
|
+
},
|
|
101
|
+
"Insert inline math": {
|
|
102
|
+
prefix: [
|
|
103
|
+
"inline math"
|
|
104
|
+
],
|
|
105
|
+
body: "$${1:${TM_SELECTED_TEXT}}$",
|
|
106
|
+
description: "Insert inline math"
|
|
107
|
+
},
|
|
108
|
+
"Insert fenced math": {
|
|
109
|
+
prefix: [
|
|
110
|
+
"fenced math"
|
|
111
|
+
],
|
|
112
|
+
body: [
|
|
113
|
+
"$$",
|
|
114
|
+
"${1:${TM_SELECTED_TEXT}}",
|
|
115
|
+
"$$"
|
|
116
|
+
],
|
|
117
|
+
description: "Insert fenced math"
|
|
100
118
|
}
|
|
101
119
|
};
|
|
102
120
|
|