@codingame/monaco-languageclient-wrapper 1.1.1 → 1.1.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/dist/main.js +25 -12
- package/package.json +15 -15
- package/stats.html +1 -1
- package/dist/BSV.tmLanguage.js +0 -299
- package/dist/COBOL Copybook.js +0 -2017
- package/dist/COBOL.js +0 -2017
- package/dist/COBOL.tmLanguage.js +0 -149
- package/dist/CodinGameMonacoWorkspace.d.ts +0 -13
- package/dist/Configuration.d.ts +0 -15
- package/dist/Erlang.plist.js +0 -1752
- package/dist/JSON.tmLanguage.js +0 -221
- package/dist/JSONC.tmLanguage.js +0 -221
- package/dist/JavaScript.tmLanguage.js +0 -5894
- package/dist/Kotlin.tmLanguage.js +0 -724
- package/dist/MagicPython.tmLanguage.js +0 -5340
- package/dist/MagicRegExp.tmLanguage.js +0 -505
- package/dist/Regular Expressions (JavaScript).tmLanguage.js +0 -166
- package/dist/SQL.plist.js +0 -482
- package/dist/Scala.tmLanguage.js +0 -1255
- package/dist/TypeScript.tmLanguage.js +0 -5641
- package/dist/WatchableConsoleWindow.d.ts +0 -22
- package/dist/_rollupPluginBabelHelpers.js +0 -54
- package/dist/asp-vb-net.tmlanguage.js +0 -247
- package/dist/bsv.js +0 -49
- package/dist/c.js +0 -18
- package/dist/c.tmLanguage.js +0 -3347
- package/dist/cabal.tmLanguage.js +0 -66
- package/dist/clojure.tmLanguage.js +0 -443
- package/dist/codeblock-cabal.js +0 -42
- package/dist/codeblock-haskell.js +0 -42
- package/dist/codeblock-literate-haskell.js +0 -42
- package/dist/codeblock.js +0 -36
- package/dist/codeblock2.js +0 -95
- package/dist/coffeescript.js +0 -18
- package/dist/coffeescript.tmLanguage.js +0 -1324
- package/dist/configuration/index.d.ts +0 -5
- package/dist/cpp.js +0 -18
- package/dist/cpp.tmLanguage.js +0 -19996
- package/dist/csharp.js +0 -18
- package/dist/csharp.tmLanguage.js +0 -4750
- package/dist/css.tmLanguage.js +0 -1873
- package/dist/css.worker.js +0 -6
- package/dist/cssContribution.js +0 -10
- package/dist/cuda-cpp.tmLanguage.js +0 -19993
- package/dist/d.js +0 -3159
- package/dist/dart.js +0 -530
- package/dist/diet.js +0 -758
- package/dist/diet2.js +0 -92
- package/dist/dml.js +0 -169
- package/dist/eex.js +0 -55
- package/dist/elixir.js +0 -2341
- package/dist/elixir2.js +0 -184
- package/dist/erlang.js +0 -195
- package/dist/expression.js +0 -846
- package/dist/extensions/autofold.d.ts +0 -2
- package/dist/extensions/cobol.d.ts +0 -2
- package/dist/extensions/index.d.ts +0 -2
- package/dist/features/cssContribution.d.ts +0 -1
- package/dist/features/htmlContribution.d.ts +0 -1
- package/dist/features/jsonContribution.d.ts +0 -1
- package/dist/features/typescriptContribution.d.ts +0 -1
- package/dist/fsharp.js +0 -18
- package/dist/fsharp.tmLanguage.js +0 -1811
- package/dist/go.tmLanguage.js +0 -1025
- package/dist/groovy.js +0 -229
- package/dist/groovy.tmLanguage.js +0 -1391
- package/dist/haskell.tmLanguage.js +0 -629
- package/dist/html (eex).js +0 -31
- package/dist/html-derivative.tmLanguage.js +0 -57
- package/dist/html.tmLanguage.js +0 -2652
- package/dist/html.tmLanguage2.js +0 -97
- package/dist/html.worker.js +0 -6
- package/dist/htmlContribution.js +0 -10
- package/dist/inline-styles.js +0 -104
- package/dist/inline-template.js +0 -88
- package/dist/java.js +0 -18
- package/dist/java.tmLanguage.js +0 -1863
- package/dist/javascript.js +0 -196
- package/dist/javascriptreact.js +0 -196
- package/dist/jsdoc.js.injection.tmLanguage.js +0 -32
- package/dist/jsdoc.ts.injection.tmLanguage.js +0 -32
- package/dist/json.worker.js +0 -6
- package/dist/jsonContribution.js +0 -78
- package/dist/keybindings/index.d.ts +0 -2
- package/dist/keybindings/keybindingHelper.d.ts +0 -2
- package/dist/keybindings/vim.d.ts +0 -3
- package/dist/kotlin.js +0 -117
- package/dist/kotlinscript.js +0 -117
- package/dist/languages/extensions/grammarLoader.d.ts +0 -91037
- package/dist/languages/extensions/snippetLoader.d.ts +0 -4578
- package/dist/languages/index.d.ts +0 -3
- package/dist/languages/monarch/index.d.ts +0 -7
- package/dist/languages/monarch/list.d.ts +0 -7
- package/dist/languages/monarch/stub-generator.d.ts +0 -2
- package/dist/languages/snippets/index.d.ts +0 -1
- package/dist/languages/textMate/CGTMGrammarFactory.d.ts +0 -5
- package/dist/languages/textMate/TextMateTokensProvider.d.ts +0 -11
- package/dist/languages/textMate/index.d.ts +0 -2
- package/dist/literateHaskell.tmLanguage.js +0 -70
- package/dist/lua.tmLanguage.js +0 -289
- package/dist/markdown.js +0 -103
- package/dist/markdown.tmLanguage.js +0 -2784
- package/dist/merlin.js +0 -111
- package/dist/monaco.d.ts +0 -8
- package/dist/objective-c.tmLanguage.js +0 -3618
- package/dist/ocaml-hover-info.js +0 -34
- package/dist/ocaml-hover-type.js +0 -24
- package/dist/ocaml-markdown-codeblock.js +0 -42
- package/dist/ocaml.js +0 -2979
- package/dist/ocamlbuild.js +0 -239
- package/dist/opam.js +0 -149
- package/dist/pascal.js +0 -382
- package/dist/pascal.tmLanguage.js +0 -169
- package/dist/perl.tmLanguage.js +0 -2986
- package/dist/perl6.tmLanguage.js +0 -323
- package/dist/pgsql.tmLanguage.js +0 -284
- package/dist/php.js +0 -265
- package/dist/php.tmLanguage.js +0 -3791
- package/dist/platform.tmLanguage.js +0 -1135
- package/dist/powershell.js +0 -18
- package/dist/powershell.tmLanguage.js +0 -1037
- package/dist/r.tmLanguage.js +0 -551
- package/dist/reason-hover-info.js +0 -34
- package/dist/reason-hover-signature.js +0 -21
- package/dist/reason-hover-type.js +0 -21
- package/dist/reason-markdown-codeblock.js +0 -42
- package/dist/reason.js +0 -100
- package/dist/ruby.tmLanguage.js +0 -2784
- package/dist/rust.tmLanguage.js +0 -1178
- package/dist/sassdoc.tmLanguage.js +0 -362
- package/dist/scss.tmLanguage.js +0 -1887
- package/dist/sdc.tmLanguage.js +0 -712
- package/dist/sdl.js +0 -162
- package/dist/services/EditorModelResolverService.d.ts +0 -8
- package/dist/services/MultiEditorStandaloneCodeEditorService.d.ts +0 -7
- package/dist/shell-unix-bash.tmLanguage.js +0 -1291
- package/dist/sql.js +0 -21
- package/dist/stub-generator.js +0 -15
- package/dist/swift.js +0 -183
- package/dist/swift.tmLanguage.js +0 -3288
- package/dist/systemverilog.js +0 -208
- package/dist/systemverilog.tmLanguage.js +0 -1067
- package/dist/tcl.js +0 -151
- package/dist/tcl.tmlanguage.yaml.js +0 -5484
- package/dist/template.js +0 -207
- package/dist/theme/index.d.ts +0 -3
- package/dist/theme/registry.d.ts +0 -4
- package/dist/theme/semanticHighlight.d.ts +0 -1
- package/dist/theme/tools.d.ts +0 -13
- package/dist/tools.d.ts +0 -3
- package/dist/ts.worker.js +0 -6
- package/dist/typescript.js +0 -312
- package/dist/typescriptContribution.js +0 -36
- package/dist/typescriptreact.js +0 -312
- package/dist/ucf.tmLanguage.js +0 -36
- package/dist/vb.js +0 -88
- package/dist/verilog.js +0 -432
- package/dist/verilog.tmLanguage.js +0 -321
- package/dist/worker.d.ts +0 -6
- package/dist/worker.js +0 -54
- package/dist/xml.tmLanguage.js +0 -395
- package/dist/xsl.tmLanguage.js +0 -102
- package/dist/yaml.tmLanguage.js +0 -629
package/dist/main.js
CHANGED
|
@@ -20641,11 +20641,9 @@ class InitializeTextDocumentFeature {
|
|
|
20641
20641
|
fillClientCapabilities() {}
|
|
20642
20642
|
|
|
20643
20643
|
initialize(capabilities, documentSelector) {
|
|
20644
|
-
var _textDocumentSyncOpti;
|
|
20645
|
-
|
|
20646
20644
|
const textDocumentSyncOptions = capabilities.resolvedTextDocumentSync;
|
|
20647
20645
|
|
|
20648
|
-
if (documentSelector == null
|
|
20646
|
+
if (documentSelector == null) {
|
|
20649
20647
|
return;
|
|
20650
20648
|
}
|
|
20651
20649
|
|
|
@@ -20656,9 +20654,9 @@ class InitializeTextDocumentFeature {
|
|
|
20656
20654
|
await updateFile(textDocument.uri, textDocument.getText(), languageClient); // send save notification if there is the capability
|
|
20657
20655
|
|
|
20658
20656
|
if (textDocumentSyncOptions != null && textDocumentSyncOptions.save != null && (typeof textDocumentSyncOptions.save !== 'boolean' || textDocumentSyncOptions.save)) {
|
|
20659
|
-
var
|
|
20657
|
+
var _textDocumentSyncOpti;
|
|
20660
20658
|
|
|
20661
|
-
const includeText = typeof textDocumentSyncOptions.save === 'boolean' ? false : (
|
|
20659
|
+
const includeText = typeof textDocumentSyncOptions.save === 'boolean' ? false : (_textDocumentSyncOpti = textDocumentSyncOptions.save.includeText) !== null && _textDocumentSyncOpti !== void 0 ? _textDocumentSyncOpti : false;
|
|
20662
20660
|
languageClient.sendNotification(lib$1.DidSaveTextDocumentNotification.type, {
|
|
20663
20661
|
textDocument: {
|
|
20664
20662
|
uri: textDocument.uri
|
|
@@ -20765,13 +20763,27 @@ async function openConnection(url, errorHandler, closeHandler) {
|
|
|
20765
20763
|
if (args[0].method === lib$1.RegistrationRequest.type.method) {
|
|
20766
20764
|
const registrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20767
20765
|
registrationParams.registrations = registrationParams.registrations.filter(registration => {
|
|
20768
|
-
|
|
20766
|
+
const alreadyExisting = existingRegistrations.has(registration.id);
|
|
20767
|
+
|
|
20768
|
+
if (alreadyExisting) {
|
|
20769
|
+
console.warn('Registration already existing', registration.id, registration.method);
|
|
20770
|
+
}
|
|
20771
|
+
|
|
20772
|
+
return !alreadyExisting;
|
|
20769
20773
|
});
|
|
20770
20774
|
registrationParams.registrations.forEach(registration => {
|
|
20771
20775
|
existingRegistrations.add(registration.id);
|
|
20772
20776
|
});
|
|
20773
20777
|
}
|
|
20774
20778
|
|
|
20779
|
+
if (args[0].method === lib$1.UnregistrationRequest.type.method) {
|
|
20780
|
+
const unregistrationParams = arguments.length <= 0 ? undefined : arguments[0];
|
|
20781
|
+
|
|
20782
|
+
for (const unregistration of unregistrationParams.unregisterations) {
|
|
20783
|
+
existingRegistrations.delete(unregistration.id);
|
|
20784
|
+
}
|
|
20785
|
+
}
|
|
20786
|
+
|
|
20775
20787
|
return args[1](...arguments);
|
|
20776
20788
|
});
|
|
20777
20789
|
},
|
|
@@ -20878,6 +20890,9 @@ const staticOptions = {
|
|
|
20878
20890
|
documentSelector: [{
|
|
20879
20891
|
scheme: 'file',
|
|
20880
20892
|
language: 'c'
|
|
20893
|
+
}, {
|
|
20894
|
+
scheme: 'file',
|
|
20895
|
+
language: 'cpp'
|
|
20881
20896
|
}]
|
|
20882
20897
|
},
|
|
20883
20898
|
csharp: {
|
|
@@ -20887,6 +20902,9 @@ const staticOptions = {
|
|
|
20887
20902
|
},
|
|
20888
20903
|
cpp: {
|
|
20889
20904
|
documentSelector: [{
|
|
20905
|
+
scheme: 'file',
|
|
20906
|
+
language: 'c'
|
|
20907
|
+
}, {
|
|
20890
20908
|
scheme: 'file',
|
|
20891
20909
|
language: 'cpp'
|
|
20892
20910
|
}, {
|
|
@@ -20930,12 +20948,7 @@ const staticOptions = {
|
|
|
20930
20948
|
}, {
|
|
20931
20949
|
language: 'tmpl',
|
|
20932
20950
|
scheme: 'file'
|
|
20933
|
-
}]
|
|
20934
|
-
initializationOptions: {
|
|
20935
|
-
lintTool: 'golint',
|
|
20936
|
-
diagnosticsEnabled: true,
|
|
20937
|
-
gocodeCompletionEnabled: true
|
|
20938
|
-
}
|
|
20951
|
+
}]
|
|
20939
20952
|
},
|
|
20940
20953
|
groovy: {
|
|
20941
20954
|
documentSelector: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"scripts": {
|
|
@@ -20,42 +20,42 @@
|
|
|
20
20
|
],
|
|
21
21
|
"types": "dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@codingame/monaco-editor-wrapper": "^1.1.
|
|
23
|
+
"@codingame/monaco-editor-wrapper": "^1.1.4",
|
|
24
24
|
"once": "^1.4.0",
|
|
25
25
|
"sweetalert": "^2.1.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@babel/core": "7.16.
|
|
29
|
-
"@babel/plugin-proposal-class-properties": "7.16.
|
|
30
|
-
"@babel/plugin-proposal-optional-chaining": "7.16.
|
|
31
|
-
"@babel/preset-env": "7.16.
|
|
32
|
-
"@babel/preset-typescript": "7.16.
|
|
33
|
-
"@babel/runtime": "7.16.
|
|
28
|
+
"@babel/core": "7.16.7",
|
|
29
|
+
"@babel/plugin-proposal-class-properties": "7.16.7",
|
|
30
|
+
"@babel/plugin-proposal-optional-chaining": "7.16.7",
|
|
31
|
+
"@babel/preset-env": "7.16.7",
|
|
32
|
+
"@babel/preset-typescript": "7.16.7",
|
|
33
|
+
"@babel/runtime": "7.16.7",
|
|
34
34
|
"@codingame/monaco-jsonrpc": "^0.3.1",
|
|
35
35
|
"@codingame/monaco-languageclient": "^0.17.3",
|
|
36
|
-
"@rollup/plugin-alias": "3.1.
|
|
36
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
37
37
|
"@rollup/plugin-babel": "5.3.0",
|
|
38
38
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
39
39
|
"@rollup/plugin-eslint": "8.0.1",
|
|
40
40
|
"@rollup/plugin-json": "4.1.0",
|
|
41
|
-
"@rollup/plugin-node-resolve": "13.1.
|
|
41
|
+
"@rollup/plugin-node-resolve": "13.1.2",
|
|
42
42
|
"@rollup/plugin-typescript": "^8.3.0",
|
|
43
43
|
"@types/once": "^1.4.0",
|
|
44
44
|
"@types/rollup-plugin-node-builtins": "^2.1.2",
|
|
45
45
|
"@types/vscode": "^1.63.1",
|
|
46
|
-
"@typescript-eslint/eslint-plugin": "5.8.
|
|
47
|
-
"@typescript-eslint/parser": "5.8.
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "5.8.1",
|
|
47
|
+
"@typescript-eslint/parser": "5.8.1",
|
|
48
48
|
"babel-eslint": "10.1.0",
|
|
49
|
-
"eslint": "8.
|
|
49
|
+
"eslint": "8.6.0",
|
|
50
50
|
"eslint-config-standard": "16.0.3",
|
|
51
51
|
"eslint-config-standard-jsx": "10.0.0",
|
|
52
|
-
"eslint-plugin-import": "2.25.
|
|
52
|
+
"eslint-plugin-import": "2.25.4",
|
|
53
53
|
"eslint-plugin-node": "11.1.0",
|
|
54
54
|
"eslint-plugin-promise": "6.0.0",
|
|
55
55
|
"eslint-plugin-standard": "5.0.0",
|
|
56
56
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
57
57
|
"proxy-polyfill": "^0.3.2",
|
|
58
|
-
"rollup": "2.
|
|
58
|
+
"rollup": "2.62.0",
|
|
59
59
|
"rollup-plugin-node-builtins": "^2.1.2",
|
|
60
60
|
"rollup-plugin-postcss": "4.0.2",
|
|
61
61
|
"rollup-plugin-visualizer": "5.5.2",
|