monaco-languageclient 7.1.0 → 7.2.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/CHANGELOG.md +7 -1
- package/lib/monaco-vscode-api-services.d.ts +1 -2
- package/lib/monaco-vscode-api-services.d.ts.map +1 -1
- package/lib/monaco-vscode-api-services.js +1 -11
- package/lib/monaco-vscode-api-services.js.map +1 -1
- package/package.json +11 -11
- package/src/monaco-vscode-api-services.ts +1 -13
package/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this npm module are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [7.2.0] - 2023-12-07
|
|
6
|
+
|
|
7
|
+
- Updated to `monaco-vscode-api@1.83.16`:
|
|
8
|
+
- Local extension hosts is automatically started. `initVscodeExtensions` is removed again.
|
|
9
|
+
- Volta now uses Node 20 (current LTS).
|
|
10
|
+
|
|
5
11
|
## [7.1.0] - 2023-11-27
|
|
6
12
|
|
|
7
|
-
- Updated to `monaco-vscode-api@1.83.12
|
|
13
|
+
- Updated to `monaco-vscode-api@1.83.12`:
|
|
8
14
|
- BREAKING: If you want to use `getConfigurationServiceOverride` you need to provide a `workspaceConfig` along the `userServices` in `initServices`.
|
|
9
15
|
|
|
10
16
|
## [7.0.2] - 2023-11-15
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { editor, Environment } from 'monaco-editor';
|
|
2
2
|
import { IWorkbenchConstructionOptions } from 'vscode/services';
|
|
3
|
+
import 'vscode/localExtensionHost';
|
|
3
4
|
import { OpenEditor } from '@codingame/monaco-vscode-editor-service-override';
|
|
4
5
|
export interface MonacoEnvironmentEnhanced extends Environment {
|
|
5
6
|
vscodeApiInitialised: boolean;
|
|
@@ -11,8 +12,6 @@ export type InitializeServiceConfig = {
|
|
|
11
12
|
};
|
|
12
13
|
export declare const wasVscodeApiInitialized: () => boolean;
|
|
13
14
|
export declare const initServices: (config?: InitializeServiceConfig) => Promise<void>;
|
|
14
|
-
export declare const initVscodeServices: (config?: InitializeServiceConfig) => Promise<void>;
|
|
15
|
-
export declare const initVscodeExtensions: (config?: InitializeServiceConfig) => Promise<void>;
|
|
16
15
|
export declare const useOpenEditorStub: OpenEditor;
|
|
17
16
|
export declare const reportServiceLoading: (services: editor.IEditorOverrideServices, debugLogging: boolean) => void;
|
|
18
17
|
export declare const mergeServices: (services: editor.IEditorOverrideServices, overrideServices: editor.IEditorOverrideServices) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-vscode-api-services.d.ts","sourceRoot":"","sources":["../src/monaco-vscode-api-services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAA2B,6BAA6B,EAAsB,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"monaco-vscode-api-services.d.ts","sourceRoot":"","sources":["../src/monaco-vscode-api-services.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACpD,OAAO,EAA2B,6BAA6B,EAAsB,MAAM,iBAAiB,CAAC;AAC7G,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,kDAAkD,CAAC;AAI9E,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC1D,oBAAoB,EAAE,OAAO,CAAC;CACjC;AAED,MAAM,MAAM,uBAAuB,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC,uBAAuB,CAAC;IAC9C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,eAAe,CAAC,EAAE,6BAA6B,CAAC;CACnD,CAAC;AAEF,eAAO,MAAM,uBAAuB,eAEnC,CAAC;AAEF,eAAO,MAAM,YAAY,YAAmB,uBAAuB,kBAelE,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,UAG/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,aAAc,OAAO,uBAAuB,gBAAgB,OAAO,SAMnG,CAAC;AAEF,eAAO,MAAM,aAAa,aAAc,OAAO,uBAAuB,oBAAoB,OAAO,uBAAuB,SAIvH,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,YAAmB,uBAAuB,kBA+BvE,CAAC"}
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
4
4
|
* ------------------------------------------------------------------------------------------ */
|
|
5
5
|
import { ILogService, initialize, StandaloneServices } from 'vscode/services';
|
|
6
|
-
import
|
|
6
|
+
import 'vscode/localExtensionHost';
|
|
7
7
|
import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
|
|
8
8
|
import getModelServiceOverride from '@codingame/monaco-vscode-model-service-override';
|
|
9
9
|
export const wasVscodeApiInitialized = () => {
|
|
10
10
|
return window.MonacoEnvironment?.vscodeApiInitialised === true;
|
|
11
11
|
};
|
|
12
12
|
export const initServices = async (config) => {
|
|
13
|
-
await initVscodeServices(config);
|
|
14
|
-
await initVscodeExtensions(config);
|
|
15
|
-
};
|
|
16
|
-
export const initVscodeServices = async (config) => {
|
|
17
13
|
if (!wasVscodeApiInitialized()) {
|
|
18
14
|
await importAllServices(config);
|
|
19
15
|
if (config?.debugLogging === true) {
|
|
@@ -30,12 +26,6 @@ export const initVscodeServices = async (config) => {
|
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
};
|
|
33
|
-
export const initVscodeExtensions = async (config) => {
|
|
34
|
-
await initializeVscodeExtensions();
|
|
35
|
-
if (config?.debugLogging === true) {
|
|
36
|
-
console.log('Initialization of vscode extensions completed successfully.');
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
29
|
export const useOpenEditorStub = async (modelRef, options, sideBySide) => {
|
|
40
30
|
console.log('Received open editor call with parameters: ', modelRef, options, sideBySide);
|
|
41
31
|
return undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"monaco-vscode-api-services.js","sourceRoot":"","sources":["../src/monaco-vscode-api-services.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,WAAW,EAAE,UAAU,EAAiC,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7G,OAAO,
|
|
1
|
+
{"version":3,"file":"monaco-vscode-api-services.js","sourceRoot":"","sources":["../src/monaco-vscode-api-services.ts"],"names":[],"mappings":"AAAA;;;gGAGgG;AAGhG,OAAO,EAAE,WAAW,EAAE,UAAU,EAAiC,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC7G,OAAO,2BAA2B,CAAC;AAEnC,OAAO,2BAA2B,MAAM,qDAAqD,CAAC;AAC9F,OAAO,uBAAuB,MAAM,iDAAiD,CAAC;AAYtF,MAAM,CAAC,MAAM,uBAAuB,GAAG,GAAG,EAAE;IACxC,OAAQ,MAAM,CAAC,iBAA+C,EAAE,oBAAoB,KAAK,IAAI,CAAC;AAClG,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAAE,MAAgC,EAAE,EAAE;IACnE,IAAI,CAAC,uBAAuB,EAAE,EAAE,CAAC;QAC7B,MAAM,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAChC,IAAI,MAAM,EAAE,YAAY,KAAK,IAAI,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,2DAA2D,CAAC,CAAC;QAC7E,CAAC;QACD,IAAI,CAAC,MAAM,CAAC,iBAAiB,EAAE,CAAC;YAC5B,MAAM,CAAC,iBAAiB,GAAG,EAAE,CAAC;QAClC,CAAC;QACA,MAAM,CAAC,iBAA+C,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACxF,CAAC;SAAM,CAAC;QACJ,IAAI,MAAM,EAAE,YAAY,KAAK,IAAI,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,4DAA4D,CAAC,CAAC;QAC9E,CAAC;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AM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAC5E,MAAM,mBAAmB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,6BAA6B,CAAC,CAAC;IAC9F,MAAM,kBAAkB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,CAAC;IAChF,MAAM,gBAAgB,GAAG,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,cAAc,CAAC,CAAC;IAE5E,0BAA0B;IAC1B,IAAI,gBAAgB,IAAI,CAAC,mBAAmB,EAAE,CAAC;QAC3C,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;IACzG,CAAC;IAED,yCAAyC;IACzC,IAAI,kBAAkB,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC1C,MAAM,IAAI,KAAK,CAAC,kFAAkF,CAAC,CAAC;IACxG,CAAC;IAED,MAAM,UAAU,CAAC,YAAY,CAAC,CAAC;IAC/B,MAAM,QAAQ,GAAG,EAAE,CAAC,eAAe,EAAE,kBAAkB,EAAE,QAAQ,CAAC;IAClE,IAAI,QAAQ,EAAE,CAAC;QACX,kBAAkB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC3D,CAAC;AACL,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monaco-languageclient",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "Monaco Language client implementation",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TypeFox GmbH",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"npm": ">=9.0.0"
|
|
38
38
|
},
|
|
39
39
|
"volta": {
|
|
40
|
-
"node": "
|
|
41
|
-
"npm": "
|
|
40
|
+
"node": "20.10.0",
|
|
41
|
+
"npm": "10.2.3"
|
|
42
42
|
},
|
|
43
43
|
"files": [
|
|
44
44
|
"lib",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"License.txt"
|
|
49
49
|
],
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@codingame/monaco-vscode-editor-service-override": "~1.83.
|
|
52
|
-
"@codingame/monaco-vscode-languages-service-override": "~1.83.
|
|
53
|
-
"@codingame/monaco-vscode-model-service-override": "~1.83.
|
|
54
|
-
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.
|
|
55
|
-
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.
|
|
51
|
+
"@codingame/monaco-vscode-editor-service-override": "~1.83.16",
|
|
52
|
+
"@codingame/monaco-vscode-languages-service-override": "~1.83.16",
|
|
53
|
+
"@codingame/monaco-vscode-model-service-override": "~1.83.16",
|
|
54
|
+
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.16 <1.84.0",
|
|
55
|
+
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.16 <1.84.0",
|
|
56
56
|
"vscode-languageclient": "~9.0.1"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"monaco-editor": "0.44.0",
|
|
60
|
-
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.
|
|
60
|
+
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.16 <1.84.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
63
63
|
"monaco-editor": {
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"vscode": "$vscode"
|
|
73
73
|
},
|
|
74
74
|
"resolutions": {
|
|
75
|
-
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.
|
|
76
|
-
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.
|
|
75
|
+
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.16 <1.84.0",
|
|
76
|
+
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.16 <1.84.0"
|
|
77
77
|
},
|
|
78
78
|
"scripts": {
|
|
79
79
|
"clean": "shx rm -fr lib *.tsbuildinfo",
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
import { editor, Environment } from 'monaco-editor';
|
|
7
7
|
import { ILogService, initialize, IWorkbenchConstructionOptions, StandaloneServices } from 'vscode/services';
|
|
8
|
-
import
|
|
8
|
+
import 'vscode/localExtensionHost';
|
|
9
9
|
import { OpenEditor } from '@codingame/monaco-vscode-editor-service-override';
|
|
10
10
|
import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
|
|
11
11
|
import getModelServiceOverride from '@codingame/monaco-vscode-model-service-override';
|
|
@@ -25,11 +25,6 @@ export const wasVscodeApiInitialized = () => {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
export const initServices = async (config?: InitializeServiceConfig) => {
|
|
28
|
-
await initVscodeServices(config);
|
|
29
|
-
await initVscodeExtensions(config);
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const initVscodeServices = async (config?: InitializeServiceConfig) => {
|
|
33
28
|
if (!wasVscodeApiInitialized()) {
|
|
34
29
|
await importAllServices(config);
|
|
35
30
|
if (config?.debugLogging === true) {
|
|
@@ -46,13 +41,6 @@ export const initVscodeServices = async (config?: InitializeServiceConfig) => {
|
|
|
46
41
|
}
|
|
47
42
|
};
|
|
48
43
|
|
|
49
|
-
export const initVscodeExtensions = async (config?: InitializeServiceConfig) => {
|
|
50
|
-
await initializeVscodeExtensions();
|
|
51
|
-
if (config?.debugLogging === true) {
|
|
52
|
-
console.log('Initialization of vscode extensions completed successfully.');
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
|
|
56
44
|
export const useOpenEditorStub: OpenEditor = async (modelRef, options, sideBySide) => {
|
|
57
45
|
console.log('Received open editor call with parameters: ', modelRef, options, sideBySide);
|
|
58
46
|
return undefined;
|