monaco-languageclient-examples 2024.6.1 → 2024.7.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/CHANGELOG.md +9 -0
- package/dist/common/node/server-commons.d.ts +0 -3
- package/dist/common/node/server-commons.d.ts.map +1 -1
- package/dist/json/server/json-server.d.ts +0 -1
- package/dist/json/server/json-server.d.ts.map +1 -1
- package/dist/langium/langium-dsl/config/classicConfig.d.ts.map +1 -1
- package/dist/langium/langium-dsl/config/extendedConfig.d.ts.map +1 -1
- package/dist/langium/langium-dsl/worker/langium-server.d.ts +0 -1
- package/dist/langium/statemachine/config/wrapperStatemachineConfig.d.ts.map +1 -1
- package/dist/langium/statemachine/worker/statemachine-server-port.d.ts +0 -1
- package/dist/langium/statemachine/worker/statemachine-server-start.d.ts +0 -1
- package/dist/langium/statemachine/worker/statemachine-server-start.d.ts.map +1 -1
- package/dist/langium/statemachine/worker/statemachine-server.d.ts +0 -1
- package/dist/ts/wrapperTs.d.ts.map +1 -1
- package/dist/ts/wrapperTs.js +11 -17
- package/dist/ts/wrapperTs.js.map +1 -1
- package/package.json +28 -28
- package/src/ts/wrapperTs.ts +11 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this npm module are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [2024.7.1] - 2024-07-02
|
|
6
|
+
|
|
7
|
+
- Updated to `@typefox/monaco-editor-react@4.3.1`.
|
|
8
|
+
|
|
9
|
+
## [2024.6.2] - 2024-06-29
|
|
10
|
+
|
|
11
|
+
- Update to latest monaco-vscode-api [#691](https://github.com/TypeFox/monaco-languageclient/pull/691)
|
|
12
|
+
- Updated to `monaco-languageclient@8.6.0`, `monaco-editor-wrapper@5.3.0` and `@typefox/monaco-editor-react@4.3.0`. Updated all `@codingame/monaco-vscode` packages to `6.0.3`.
|
|
13
|
+
|
|
5
14
|
## [2024.6.1] - 2024-06-04
|
|
6
15
|
|
|
7
16
|
- Updated to `monaco-languageclient@8.5.0`, `vscode-ws-jsonrpc@3.3.2`, `monaco-editor-wrapper@5.2.0` and `@typefox/monaco-editor-react@4.2.0`. Updated all `@codingame/monaco-vscode` packages to `5.2.0`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server-commons.d.ts","sourceRoot":"","sources":["../../../src/common/node/server-commons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server-commons.d.ts","sourceRoot":"","sources":["../../../src/common/node/server-commons.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,IAAI,CAAC;AACpD,OAAO,EAAmB,MAAM,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAI/B,OAAO,EAAE,UAAU,EAAkD,MAAM,mBAAmB,CAAC;AAG/F,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AAEpC,oBAAY,YAAY;IACpB,uCAAuC;IACvC,IAAI,SAAS;IACb,yEAAyE;IACzE,IAAI,SAAS;CAChB;AAED,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,GAAG,MAAM,CAAC;IAClC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,aAAa,CAAC;IAC/B,YAAY,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC;CAClC;AAED;;GAEG;AACH,eAAO,MAAM,oBAAoB,cAAe,uBAAuB,UAAU,UAAU,SAwB1F,CAAC;AAEF,eAAO,MAAM,eAAe,cAAe,uBAAuB,UACtD;IACJ,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,eAAe,CAAA;CACvB,SA+BJ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,iBAAkB,MAAM,GAAG,GAAG,WAG3D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-server.d.ts","sourceRoot":"","sources":["../../../src/json/server/json-server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"json-server.d.ts","sourceRoot":"","sources":["../../../src/json/server/json-server.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,GAAG,MAAM,YAAY,CAAC;AAClC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAoB,WAAW,EAAE,aAAa,EAAE,oBAAoB,EAAoB,MAAM,wCAAwC,CAAC;AAC9I,OAAO,EACH,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAC1D,iBAAiB,EAAE,QAAQ,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EACjF,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,0BAA0B,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,uBAAuB,EAAwB,MAAM,gCAAgC,CAAC;AAC3O,OAAO,EAAsB,eAAe,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChG,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,qBAAa,UAAU;IACnB,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;IAC3C,SAAS,CAAC,aAAa,EAAE,GAAG,CAAC,GAAG,GAAG,SAAS,CAAC;IAC7C,SAAS,CAAC,QAAQ,CAAC,SAAS,8BAAmC;IAE/D,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,eAAe,CAE5C;IAEH,SAAS,CAAC,QAAQ,CAAC,yBAAyB,8BAAqC;gBAErE,UAAU,EAAE,WAAW;IAqEnC,KAAK;IAIL,SAAS,CAAC,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY,EAAE;IAQtE,SAAS,CAAC,kB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":"classicConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/langium-dsl/config/classicConfig.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKnD,eAAO,MAAM,yBAAyB,QAAa,
|
|
1
|
+
{"version":3,"file":"classicConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/langium-dsl/config/classicConfig.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKnD,eAAO,MAAM,yBAAyB,QAAa,OAAO,CAAC,UAAU,CAwDpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extendedConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/langium-dsl/config/extendedConfig.ts"],"names":[],"mappings":"AAOA,OAAO,kEAAkE,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAOnD,eAAO,MAAM,0BAA0B,QAAa,
|
|
1
|
+
{"version":3,"file":"extendedConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/langium-dsl/config/extendedConfig.ts"],"names":[],"mappings":"AAOA,OAAO,kEAAkE,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAOnD,eAAO,MAAM,0BAA0B,QAAa,OAAO,CAAC,UAAU,CAyErE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapperStatemachineConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/statemachine/config/wrapperStatemachineConfig.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKzE,eAAO,MAAM,yBAAyB,WAAkB;IACpD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CAC3C,KAAG,
|
|
1
|
+
{"version":3,"file":"wrapperStatemachineConfig.d.ts","sourceRoot":"","sources":["../../../../src/langium/statemachine/config/wrapperStatemachineConfig.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAwB,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAKzE,eAAO,MAAM,yBAAyB,WAAkB;IACpD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,kBAAkB,CAAC,EAAE,mBAAmB,CAAA;CAC3C,KAAG,OAAO,CAAC,UAAU,CA0ErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statemachine-server-start.d.ts","sourceRoot":"","sources":["../../../../src/langium/statemachine/worker/statemachine-server-start.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"statemachine-server-start.d.ts","sourceRoot":"","sources":["../../../../src/langium/statemachine/worker/statemachine-server-start.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAoB,MAAM,kCAAkC,CAAC;AAGhH,eAAO,IAAI,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;AAC3D,eAAO,IAAI,aAAa,EAAE,oBAAoB,GAAG,SAAS,CAAC;AAE3D,eAAO,MAAM,KAAK,SAAU,WAAW,GAAG,0BAA0B,QAAQ,MAAM,SAajF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapperTs.d.ts","sourceRoot":"","sources":["../../src/ts/wrapperTs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"wrapperTs.d.ts","sourceRoot":"","sources":["../../src/ts/wrapperTs.ts"],"names":[],"mappings":"AAOA,OAAO,2DAA2D,CAAC;AACnE,OAAO,8DAA8D,CAAC;AACtE,OAAO,yEAAyE,CAAC;AAIjF,eAAO,MAAM,sBAAsB,YAOlC,CAAC;AAEF,eAAO,MAAM,YAAY,qBAwGxB,CAAC"}
|
package/dist/ts/wrapperTs.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License. See LICENSE in the package root for license information.
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
import * as vscode from 'vscode';
|
|
6
|
-
import * as monaco from 'monaco-editor';
|
|
7
6
|
import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override';
|
|
8
7
|
import '@codingame/monaco-vscode-theme-defaults-default-extension';
|
|
9
8
|
import '@codingame/monaco-vscode-typescript-basics-default-extension';
|
|
@@ -27,20 +26,6 @@ export const runTsWrapper = async () => {
|
|
|
27
26
|
const codeOriginal = `function sayGoodbye(): string {
|
|
28
27
|
return "Goodbye";
|
|
29
28
|
};`;
|
|
30
|
-
const monacoEditorConfig = {
|
|
31
|
-
glyphMargin: true,
|
|
32
|
-
guides: {
|
|
33
|
-
bracketPairs: true
|
|
34
|
-
},
|
|
35
|
-
lightbulb: {
|
|
36
|
-
enabled: monaco.editor.ShowLightbulbIconMode.On
|
|
37
|
-
},
|
|
38
|
-
theme: 'vs-dark'
|
|
39
|
-
};
|
|
40
|
-
const monacoDiffEditorConfig = {
|
|
41
|
-
...monacoEditorConfig,
|
|
42
|
-
renderSideBySide: false
|
|
43
|
-
};
|
|
44
29
|
const userConfig = {
|
|
45
30
|
wrapperConfig: {
|
|
46
31
|
serviceConfig: {
|
|
@@ -63,8 +48,17 @@ export const runTsWrapper = async () => {
|
|
|
63
48
|
}
|
|
64
49
|
},
|
|
65
50
|
useDiffEditor: false,
|
|
66
|
-
|
|
67
|
-
|
|
51
|
+
userConfiguration: {
|
|
52
|
+
json: JSON.stringify({
|
|
53
|
+
'workbench.colorTheme': 'Default Dark Modern',
|
|
54
|
+
'typescript.tsserver.web.projectWideIntellisense.enabled': true,
|
|
55
|
+
'typescript.tsserver.web.projectWideIntellisense.suppressSemanticErrors': false,
|
|
56
|
+
'diffEditor.renderSideBySide': false,
|
|
57
|
+
'editor.lightbulb.enabled': 'on',
|
|
58
|
+
'editor.glyphMargin': true,
|
|
59
|
+
'editor.guides.bracketPairsHorizontal': true
|
|
60
|
+
})
|
|
61
|
+
}
|
|
68
62
|
}
|
|
69
63
|
}
|
|
70
64
|
};
|
package/dist/ts/wrapperTs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wrapperTs.js","sourceRoot":"","sources":["../../src/ts/wrapperTs.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,
|
|
1
|
+
{"version":3,"file":"wrapperTs.js","sourceRoot":"","sources":["../../src/ts/wrapperTs.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAEhG,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,6BAA6B,MAAM,uDAAuD,CAAC;AAClG,OAAO,2DAA2D,CAAC;AACnE,OAAO,8DAA8D,CAAC;AACtE,OAAO,yEAAyE,CAAC;AACjF,OAAO,EAAe,iCAAiC,EAAc,MAAM,uBAAuB,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAG,EAAE;IACvC,gBAAgB,CAAC;QACb,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE;YACX,mBAAmB,EAAE,GAAG,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,8CAA8C,EAAE,MAAM,CA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AAO;qBACf;oBACD,QAAQ,EAAE;wBACN,IAAI,EAAE,YAAY;wBAClB,GAAG,EAAE,eAAe;qBACvB;iBACJ,CAAC,CAAC;YACP,CAAC;QACL,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,aAAa,CAAC,cAAc,CAAC,EAAE,gBAAgB,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;YACzE,+CAA+C;YAC/C,MAAM,aAAa,GAAG,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC,aAAa,IAAI,KAAK,CAAC;YACtF,UAAU,CAAC,aAAa,CAAC,eAAe,CAAC,aAAa,GAAG,CAAC,aAAa,CAAC;YACxE,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;YACxB,MAAM,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;YAC5E,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAC5B,CAAC,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACT,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;AACL,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monaco-languageclient-examples",
|
|
3
|
-
"version": "2024.
|
|
3
|
+
"version": "2024.7.1",
|
|
4
4
|
"description": "Monaco Language client examples",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TypeFox GmbH",
|
|
@@ -54,45 +54,45 @@
|
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@codingame/monaco-vscode-configuration-service-override": "~
|
|
58
|
-
"@codingame/monaco-vscode-files-service-override": "~
|
|
59
|
-
"@codingame/monaco-vscode-groovy-default-extension": "~
|
|
60
|
-
"@codingame/monaco-vscode-keybindings-service-override": "~
|
|
61
|
-
"@codingame/monaco-vscode-lifecycle-service-override": "~
|
|
62
|
-
"@codingame/monaco-vscode-localization-service-override": "~
|
|
63
|
-
"@codingame/monaco-vscode-javascript-default-extension": "~
|
|
64
|
-
"@codingame/monaco-vscode-json-default-extension": "~
|
|
65
|
-
"@codingame/monaco-vscode-python-default-extension": "~
|
|
66
|
-
"@codingame/monaco-vscode-standalone-languages": "~
|
|
67
|
-
"@codingame/monaco-vscode-standalone-typescript-language-features": "~
|
|
68
|
-
"@codingame/monaco-vscode-standalone-json-language-features": "~
|
|
69
|
-
"@codingame/monaco-vscode-textmate-service-override": "~
|
|
70
|
-
"@codingame/monaco-vscode-theme-defaults-default-extension": "~
|
|
71
|
-
"@codingame/monaco-vscode-theme-service-override": "~
|
|
72
|
-
"@codingame/monaco-vscode-typescript-basics-default-extension": "~
|
|
73
|
-
"@codingame/monaco-vscode-typescript-language-features-default-extension": "~
|
|
74
|
-
"@typefox/monaco-editor-react": "~4.
|
|
57
|
+
"@codingame/monaco-vscode-configuration-service-override": "~6.0.3",
|
|
58
|
+
"@codingame/monaco-vscode-files-service-override": "~6.0.3",
|
|
59
|
+
"@codingame/monaco-vscode-groovy-default-extension": "~6.0.3",
|
|
60
|
+
"@codingame/monaco-vscode-keybindings-service-override": "~6.0.3",
|
|
61
|
+
"@codingame/monaco-vscode-lifecycle-service-override": "~6.0.3",
|
|
62
|
+
"@codingame/monaco-vscode-localization-service-override": "~6.0.3",
|
|
63
|
+
"@codingame/monaco-vscode-javascript-default-extension": "~6.0.3",
|
|
64
|
+
"@codingame/monaco-vscode-json-default-extension": "~6.0.3",
|
|
65
|
+
"@codingame/monaco-vscode-python-default-extension": "~6.0.3",
|
|
66
|
+
"@codingame/monaco-vscode-standalone-languages": "~6.0.3",
|
|
67
|
+
"@codingame/monaco-vscode-standalone-typescript-language-features": "~6.0.3",
|
|
68
|
+
"@codingame/monaco-vscode-standalone-json-language-features": "~6.0.3",
|
|
69
|
+
"@codingame/monaco-vscode-textmate-service-override": "~6.0.3",
|
|
70
|
+
"@codingame/monaco-vscode-theme-defaults-default-extension": "~6.0.3",
|
|
71
|
+
"@codingame/monaco-vscode-theme-service-override": "~6.0.3",
|
|
72
|
+
"@codingame/monaco-vscode-typescript-basics-default-extension": "~6.0.3",
|
|
73
|
+
"@codingame/monaco-vscode-typescript-language-features-default-extension": "~6.0.3",
|
|
74
|
+
"@typefox/monaco-editor-react": "~4.3.1",
|
|
75
75
|
"express": "~4.19.2",
|
|
76
|
-
"langium": "~3.
|
|
77
|
-
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~
|
|
78
|
-
"monaco-editor-wrapper": "~5.
|
|
79
|
-
"monaco-languageclient": "~8.
|
|
80
|
-
"pyright": "~1.1.
|
|
76
|
+
"langium": "~3.1.1",
|
|
77
|
+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~6.0.3",
|
|
78
|
+
"monaco-editor-wrapper": "~5.3.0",
|
|
79
|
+
"monaco-languageclient": "~8.6.0",
|
|
80
|
+
"pyright": "~1.1.369",
|
|
81
81
|
"react": "~18.3.1",
|
|
82
82
|
"react-dom": "~18.3.1",
|
|
83
83
|
"request-light": "~0.7.0",
|
|
84
|
-
"vscode": "npm:@codingame/monaco-vscode-api@~
|
|
85
|
-
"vscode-json-languageservice": "~5.
|
|
84
|
+
"vscode": "npm:@codingame/monaco-vscode-api@~6.0.3",
|
|
85
|
+
"vscode-json-languageservice": "~5.4.0",
|
|
86
86
|
"vscode-languageclient": "~9.0.1",
|
|
87
87
|
"vscode-languageserver": "~9.0.1",
|
|
88
88
|
"vscode-uri": "~3.0.8",
|
|
89
89
|
"vscode-ws-jsonrpc": "~3.3.2",
|
|
90
|
-
"ws": "~8.17.
|
|
90
|
+
"ws": "~8.17.1"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
|
93
93
|
"@types/express": "~4.17.21",
|
|
94
94
|
"@types/ws": "~8.5.10",
|
|
95
|
-
"langium-cli": "3.0
|
|
95
|
+
"langium-cli": "~3.1.0",
|
|
96
96
|
"ts-node": "~10.9.1",
|
|
97
97
|
"vscode-languageserver-types": "~3.17.5"
|
|
98
98
|
},
|
package/src/ts/wrapperTs.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
|
|
6
6
|
import * as vscode from 'vscode';
|
|
7
|
-
import * as monaco from 'monaco-editor';
|
|
8
7
|
import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override';
|
|
9
8
|
import '@codingame/monaco-vscode-theme-defaults-default-extension';
|
|
10
9
|
import '@codingame/monaco-vscode-typescript-basics-default-extension';
|
|
@@ -32,22 +31,6 @@ export const runTsWrapper = async () => {
|
|
|
32
31
|
return "Goodbye";
|
|
33
32
|
};`;
|
|
34
33
|
|
|
35
|
-
const monacoEditorConfig = {
|
|
36
|
-
glyphMargin: true,
|
|
37
|
-
guides: {
|
|
38
|
-
bracketPairs: true
|
|
39
|
-
},
|
|
40
|
-
lightbulb: {
|
|
41
|
-
enabled: monaco.editor.ShowLightbulbIconMode.On
|
|
42
|
-
},
|
|
43
|
-
theme: 'vs-dark'
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const monacoDiffEditorConfig = {
|
|
47
|
-
...monacoEditorConfig,
|
|
48
|
-
renderSideBySide: false
|
|
49
|
-
};
|
|
50
|
-
|
|
51
34
|
const userConfig: UserConfig = {
|
|
52
35
|
wrapperConfig: {
|
|
53
36
|
serviceConfig: {
|
|
@@ -70,8 +53,17 @@ export const runTsWrapper = async () => {
|
|
|
70
53
|
}
|
|
71
54
|
},
|
|
72
55
|
useDiffEditor: false,
|
|
73
|
-
|
|
74
|
-
|
|
56
|
+
userConfiguration: {
|
|
57
|
+
json: JSON.stringify({
|
|
58
|
+
'workbench.colorTheme': 'Default Dark Modern',
|
|
59
|
+
'typescript.tsserver.web.projectWideIntellisense.enabled': true,
|
|
60
|
+
'typescript.tsserver.web.projectWideIntellisense.suppressSemanticErrors': false,
|
|
61
|
+
'diffEditor.renderSideBySide': false,
|
|
62
|
+
'editor.lightbulb.enabled': 'on',
|
|
63
|
+
'editor.glyphMargin': true,
|
|
64
|
+
'editor.guides.bracketPairsHorizontal': true
|
|
65
|
+
})
|
|
66
|
+
}
|
|
75
67
|
}
|
|
76
68
|
}
|
|
77
69
|
};
|