@codingame/monaco-languageclient-wrapper 8.0.0 → 10.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/dist/createLanguageClient.js +9 -9
- package/dist/customRequests.js +1 -1
- package/dist/extensionConfiguration.js +3 -1
- package/dist/extensions/cobol.js +4 -4
- package/dist/extensions/java/extension.js +1 -1
- package/dist/extensions/java/inlayHintsProvider.js +3 -3
- package/dist/extensions/java/sourceAction.js +11 -11
- package/dist/extensions/java.js +4 -2
- package/dist/extensions/tools.js +42 -14
- package/dist/extensions.js +23 -14
- package/dist/index.d.ts +1 -1
- package/dist/infrastructure.js +10 -9
- package/dist/languageClient.js +14 -16
- package/dist/languageClientOptions.js +1 -1
- package/dist/services.js +1 -1
- package/dist/staticOptions.js +27 -46
- package/package.json +34 -43
- package/stats.html +2230 -2123
package/dist/staticOptions.js
CHANGED
|
@@ -3,7 +3,7 @@ const asLanguageClientOptionsById = (options) => options;
|
|
|
3
3
|
const clangdHotfixMiddleware = {
|
|
4
4
|
async provideCompletionItem(document, position, context, token, next) {
|
|
5
5
|
const list = await next(document, position, context, token);
|
|
6
|
-
const items = Array.isArray(list) ? list : list === null || list ===
|
|
6
|
+
const items = Array.isArray(list) ? list : list === null || list === undefined ? undefined : list.items;
|
|
7
7
|
if (items != null) {
|
|
8
8
|
for (const item of items) {
|
|
9
9
|
item.commitCharacters = [];
|
|
@@ -41,9 +41,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
41
41
|
mutualizable: false
|
|
42
42
|
},
|
|
43
43
|
csharp: {
|
|
44
|
-
documentSelector: [
|
|
45
|
-
{ scheme: 'file', language: 'csharp' }
|
|
46
|
-
],
|
|
44
|
+
documentSelector: [{ scheme: 'file', language: 'csharp' }],
|
|
47
45
|
mutualizable: true,
|
|
48
46
|
middleware: {
|
|
49
47
|
async provideDefinition(document, position, token, next) {
|
|
@@ -62,9 +60,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
62
60
|
},
|
|
63
61
|
async createAdditionalFeatures(client) {
|
|
64
62
|
const { CsharpExtensionFeature } = await import('./extensions/csharp.js').then(module => module);
|
|
65
|
-
return [
|
|
66
|
-
new CsharpExtensionFeature(client)
|
|
67
|
-
];
|
|
63
|
+
return [new CsharpExtensionFeature(client)];
|
|
68
64
|
}
|
|
69
65
|
},
|
|
70
66
|
cpp: {
|
|
@@ -97,9 +93,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
97
93
|
},
|
|
98
94
|
async createAdditionalFeatures(client) {
|
|
99
95
|
const { CobolResolveSubroutineFeature } = await import('./extensions/cobol.js').then(module => module);
|
|
100
|
-
return [
|
|
101
|
-
new CobolResolveSubroutineFeature(client)
|
|
102
|
-
];
|
|
96
|
+
return [new CobolResolveSubroutineFeature(client)];
|
|
103
97
|
}
|
|
104
98
|
},
|
|
105
99
|
dart: {
|
|
@@ -128,9 +122,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
128
122
|
}
|
|
129
123
|
},
|
|
130
124
|
groovy: {
|
|
131
|
-
documentSelector: [
|
|
132
|
-
{ scheme: 'file', language: 'groovy' }
|
|
133
|
-
],
|
|
125
|
+
documentSelector: [{ scheme: 'file', language: 'groovy' }],
|
|
134
126
|
synchronize: {
|
|
135
127
|
configurationSection: 'groovy'
|
|
136
128
|
},
|
|
@@ -148,9 +140,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
148
140
|
mutualizable: true,
|
|
149
141
|
async createAdditionalFeatures(client) {
|
|
150
142
|
const { JavaExtensionFeature } = await import('./extensions/java.js').then(module => module);
|
|
151
|
-
return [
|
|
152
|
-
new JavaExtensionFeature(client)
|
|
153
|
-
];
|
|
143
|
+
return [new JavaExtensionFeature(client)];
|
|
154
144
|
},
|
|
155
145
|
initializationOptions: {
|
|
156
146
|
extendedClientCapabilities: {
|
|
@@ -197,9 +187,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
197
187
|
maxInitializeDuration: 60000
|
|
198
188
|
},
|
|
199
189
|
lua: {
|
|
200
|
-
documentSelector: [
|
|
201
|
-
{ scheme: 'file', language: 'lua' }
|
|
202
|
-
],
|
|
190
|
+
documentSelector: [{ scheme: 'file', language: 'lua' }],
|
|
203
191
|
synchronize: {
|
|
204
192
|
configurationSection: 'Lua'
|
|
205
193
|
},
|
|
@@ -211,10 +199,12 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
211
199
|
}
|
|
212
200
|
},
|
|
213
201
|
mysql: {
|
|
214
|
-
documentSelector: [
|
|
202
|
+
documentSelector: [
|
|
203
|
+
{
|
|
215
204
|
scheme: 'file',
|
|
216
205
|
language: 'sql'
|
|
217
|
-
}
|
|
206
|
+
}
|
|
207
|
+
],
|
|
218
208
|
middleware: {
|
|
219
209
|
provideCodeActions() {
|
|
220
210
|
return [];
|
|
@@ -223,10 +213,12 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
223
213
|
mutualizable: false
|
|
224
214
|
},
|
|
225
215
|
ocaml: {
|
|
226
|
-
documentSelector: [
|
|
216
|
+
documentSelector: [
|
|
217
|
+
{
|
|
227
218
|
scheme: 'file',
|
|
228
219
|
language: 'ocaml'
|
|
229
|
-
}
|
|
220
|
+
}
|
|
221
|
+
],
|
|
230
222
|
mutualizable: false
|
|
231
223
|
},
|
|
232
224
|
'objective-c': {
|
|
@@ -252,15 +244,11 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
252
244
|
var _a;
|
|
253
245
|
return ({
|
|
254
246
|
configuration: {
|
|
255
|
-
uris: (_a = vscode.workspace.workspaceFolders) === null || _a ===
|
|
247
|
+
uris: (_a = vscode.workspace.workspaceFolders) === null || _a === undefined ? undefined : _a.map((folder) => folder.uri.toString()),
|
|
256
248
|
phpVersion: 7.3,
|
|
257
|
-
fileExtensions: [
|
|
258
|
-
'php'
|
|
259
|
-
],
|
|
249
|
+
fileExtensions: ['php'],
|
|
260
250
|
indexDatabaseUri: 'file:///tmp/index.sqlite',
|
|
261
|
-
excludedPathExpressions: [
|
|
262
|
-
'file:///opt/serenata'
|
|
263
|
-
]
|
|
251
|
+
excludedPathExpressions: ['file:///opt/serenata']
|
|
264
252
|
}
|
|
265
253
|
});
|
|
266
254
|
},
|
|
@@ -277,10 +265,12 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
277
265
|
mutualizable: true
|
|
278
266
|
},
|
|
279
267
|
postgresql: {
|
|
280
|
-
documentSelector: [
|
|
268
|
+
documentSelector: [
|
|
269
|
+
{
|
|
281
270
|
scheme: 'file',
|
|
282
271
|
language: 'postgres'
|
|
283
|
-
}
|
|
272
|
+
}
|
|
273
|
+
],
|
|
284
274
|
middleware: {
|
|
285
275
|
provideCodeActions() {
|
|
286
276
|
return [];
|
|
@@ -289,9 +279,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
289
279
|
mutualizable: false
|
|
290
280
|
},
|
|
291
281
|
python: {
|
|
292
|
-
documentSelector: [
|
|
293
|
-
{ scheme: 'file', language: 'python' }
|
|
294
|
-
],
|
|
282
|
+
documentSelector: [{ scheme: 'file', language: 'python' }],
|
|
295
283
|
synchronize: {
|
|
296
284
|
configurationSection: 'python'
|
|
297
285
|
},
|
|
@@ -321,9 +309,7 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
321
309
|
mutualizable: true
|
|
322
310
|
},
|
|
323
311
|
ruby: {
|
|
324
|
-
documentSelector: [
|
|
325
|
-
{ scheme: 'file', language: 'ruby' }
|
|
326
|
-
],
|
|
312
|
+
documentSelector: [{ scheme: 'file', language: 'ruby' }],
|
|
327
313
|
mutualizable: true,
|
|
328
314
|
defaultConfigurationOverride: {
|
|
329
315
|
'solargraph.diagnostics': true,
|
|
@@ -334,15 +320,11 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
334
320
|
}
|
|
335
321
|
},
|
|
336
322
|
rust: {
|
|
337
|
-
documentSelector: [
|
|
338
|
-
{ scheme: 'file', language: 'rust' }
|
|
339
|
-
],
|
|
323
|
+
documentSelector: [{ scheme: 'file', language: 'rust' }],
|
|
340
324
|
mutualizable: false
|
|
341
325
|
},
|
|
342
326
|
scala: {
|
|
343
|
-
documentSelector: [
|
|
344
|
-
{ scheme: 'file', language: 'scala' }
|
|
345
|
-
],
|
|
327
|
+
documentSelector: [{ scheme: 'file', language: 'scala' }],
|
|
346
328
|
synchronize: {
|
|
347
329
|
configurationSection: 'metals'
|
|
348
330
|
},
|
|
@@ -410,5 +392,4 @@ const staticOptions = asLanguageClientOptionsById({
|
|
|
410
392
|
mutualizable: true
|
|
411
393
|
}
|
|
412
394
|
});
|
|
413
|
-
|
|
414
|
-
export { staticOptions$1 as default };
|
|
395
|
+
export { staticOptions as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codingame/monaco-languageclient-wrapper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Enhanced Monaco editor with TextMate grammars and more",
|
|
6
6
|
"type": "module",
|
|
@@ -10,8 +10,9 @@
|
|
|
10
10
|
"scripts": {
|
|
11
11
|
"test": "jest --runInBand",
|
|
12
12
|
"test:watch": "jest --watch",
|
|
13
|
-
"build": "npm run
|
|
13
|
+
"build": "npm run lint && npm run compile && npm run generate-types && npm run test",
|
|
14
14
|
"compile": "node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.config.ts --configPlugin typescript",
|
|
15
|
+
"lint": "eslint '{src/**/*.ts,scripts/*.ts,rollup.config.ts}' && prettier --check '**/*.{js,ts}'",
|
|
15
16
|
"generate-types": "tsc --project tsconfig.types.json && node --experimental-json-modules ./node_modules/.bin/rollup --config rollup.types.config.ts --configPlugin typescript && rm -rf ./dist/types",
|
|
16
17
|
"preprepare": "./scripts/install-extensions"
|
|
17
18
|
},
|
|
@@ -27,69 +28,59 @@
|
|
|
27
28
|
],
|
|
28
29
|
"types": "./dist/index.d.ts",
|
|
29
30
|
"dependencies": {
|
|
30
|
-
"@codingame/monaco-editor-wrapper": "^
|
|
31
|
-
"@codingame/monaco-vscode-
|
|
31
|
+
"@codingame/monaco-editor-wrapper": "^11.0.0",
|
|
32
|
+
"@codingame/monaco-vscode-api": "^13.1.3",
|
|
33
|
+
"@codingame/monaco-vscode-files-service-override": "^13.1.3",
|
|
32
34
|
"delay": "^6.0.0",
|
|
33
|
-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^
|
|
35
|
+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@^13.1.3",
|
|
34
36
|
"once": "^1.4.0",
|
|
35
|
-
"vscode": "npm:@codingame/monaco-vscode-api@^
|
|
37
|
+
"vscode": "npm:@codingame/monaco-vscode-extension-api@^13.1.3",
|
|
36
38
|
"vscode-jsonrpc": "^8.2.1",
|
|
37
39
|
"vscode-languageclient": "~9.0.1",
|
|
38
40
|
"vscode-languageserver-protocol": "^3.17.5",
|
|
39
|
-
"vscode-ws-jsonrpc": "^3.
|
|
41
|
+
"vscode-ws-jsonrpc": "^3.4.0"
|
|
40
42
|
},
|
|
41
43
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.
|
|
44
|
+
"@babel/core": "7.26.7",
|
|
43
45
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
44
46
|
"@babel/plugin-proposal-optional-chaining": "7.21.0",
|
|
45
|
-
"@babel/plugin-transform-modules-commonjs": "^7.
|
|
46
|
-
"@babel/preset-env": "7.
|
|
47
|
-
"@babel/preset-typescript": "7.
|
|
48
|
-
"@babel/runtime": "7.
|
|
47
|
+
"@babel/plugin-transform-modules-commonjs": "^7.26.3",
|
|
48
|
+
"@babel/preset-env": "7.26.7",
|
|
49
|
+
"@babel/preset-typescript": "7.26.0",
|
|
50
|
+
"@babel/runtime": "7.26.7",
|
|
49
51
|
"@codingame/commitlint-config-codingame": "1.1.1",
|
|
50
|
-
"@codingame/
|
|
51
|
-
"@codingame/semantic-release-config-github": "^1.0.0",
|
|
52
|
+
"@codingame/semantic-release-config-github": "^2.0.0",
|
|
52
53
|
"@codingame/tsconfig": "^1.1.1",
|
|
53
|
-
"@commitlint/cli": "^19.
|
|
54
|
-
"@rollup/plugin-commonjs": "
|
|
55
|
-
"@rollup/plugin-eslint": "9.0.5",
|
|
54
|
+
"@commitlint/cli": "^19.7.1",
|
|
55
|
+
"@rollup/plugin-commonjs": "28.0.2",
|
|
56
56
|
"@rollup/plugin-json": "6.1.0",
|
|
57
|
-
"@rollup/plugin-node-resolve": "
|
|
58
|
-
"@rollup/plugin-typescript": "^
|
|
59
|
-
"@types/jest": "^29.5.
|
|
60
|
-
"@types/once": "^1.4.
|
|
61
|
-
"@types/vscode": "~1.
|
|
62
|
-
"
|
|
63
|
-
"@typescript-eslint/parser": "7.16.0",
|
|
64
|
-
"babel-plugin-transform-import-meta": "^2.2.1",
|
|
57
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
58
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
59
|
+
"@types/jest": "^29.5.14",
|
|
60
|
+
"@types/once": "^1.4.5",
|
|
61
|
+
"@types/vscode": "~1.96.0",
|
|
62
|
+
"babel-plugin-transform-import-meta": "^2.3.2",
|
|
65
63
|
"browser-resolve": "^2.0.0",
|
|
66
|
-
"canvas": "^
|
|
67
|
-
"conventional-changelog-conventionalcommits": "^
|
|
68
|
-
"eslint": "
|
|
69
|
-
"eslint-config-standard": "17.1.0",
|
|
70
|
-
"eslint-plugin-import": "2.29.1",
|
|
71
|
-
"eslint-plugin-jest": "^28.6.0",
|
|
72
|
-
"eslint-plugin-promise": "6.2.0",
|
|
73
|
-
"eslint-plugin-unused-imports": "^3.2.0",
|
|
64
|
+
"canvas": "^3.1.0",
|
|
65
|
+
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
66
|
+
"eslint": "9.19.0",
|
|
74
67
|
"fake-indexeddb": "^6.0.0",
|
|
75
68
|
"jest": "^29.7.0",
|
|
76
69
|
"jest-environment-jsdom": "^29.7.0",
|
|
77
70
|
"js-cleanup": "^1.2.0",
|
|
78
|
-
"
|
|
71
|
+
"prettier": "^3.4.2",
|
|
79
72
|
"recast": "^0.23.9",
|
|
80
|
-
"rollup": "4.
|
|
73
|
+
"rollup": "4.34.2",
|
|
81
74
|
"rollup-plugin-dts": "^6.1.1",
|
|
82
75
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
83
76
|
"rollup-plugin-postcss": "4.0.2",
|
|
84
|
-
"rollup-plugin-visualizer": "5.
|
|
85
|
-
"tslib": "^2.
|
|
86
|
-
"typescript": "5.
|
|
77
|
+
"rollup-plugin-visualizer": "5.14.0",
|
|
78
|
+
"tslib": "^2.8.1",
|
|
79
|
+
"typescript": "5.7.3",
|
|
80
|
+
"typescript-eslint": "^8.23.0",
|
|
87
81
|
"vscode-languageserver": "~9.0.1",
|
|
88
82
|
"whatwg-fetch": "^3.6.20"
|
|
89
83
|
},
|
|
90
|
-
"resolutions": {
|
|
91
|
-
"eslint": "8.57.0"
|
|
92
|
-
},
|
|
93
84
|
"browserslist": [
|
|
94
85
|
"defaults",
|
|
95
86
|
"chrome >= 59",
|
|
@@ -123,9 +114,9 @@
|
|
|
123
114
|
}
|
|
124
115
|
},
|
|
125
116
|
"overrides": {
|
|
126
|
-
"
|
|
117
|
+
"globals": "15.14.0",
|
|
127
118
|
"monaco-editor": "$monaco-editor",
|
|
128
|
-
"
|
|
119
|
+
"canvas": "$canvas"
|
|
129
120
|
},
|
|
130
121
|
"volta": {
|
|
131
122
|
"node": "20.10.0",
|