monaco-languageclient-examples 2024.6.2 → 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 +4 -0
- 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 +2 -2
- package/src/ts/wrapperTs.ts +11 -19
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
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
|
+
|
|
5
9
|
## [2024.6.2] - 2024-06-29
|
|
6
10
|
|
|
7
11
|
- Update to latest monaco-vscode-api [#691](https://github.com/TypeFox/monaco-languageclient/pull/691)
|
|
@@ -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":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,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",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"@codingame/monaco-vscode-theme-service-override": "~6.0.3",
|
|
72
72
|
"@codingame/monaco-vscode-typescript-basics-default-extension": "~6.0.3",
|
|
73
73
|
"@codingame/monaco-vscode-typescript-language-features-default-extension": "~6.0.3",
|
|
74
|
-
"@typefox/monaco-editor-react": "~4.3.
|
|
74
|
+
"@typefox/monaco-editor-react": "~4.3.1",
|
|
75
75
|
"express": "~4.19.2",
|
|
76
76
|
"langium": "~3.1.1",
|
|
77
77
|
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~6.0.3",
|
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
|
};
|