Skip to content

Commit

Permalink
Updated to [email protected]. Align with changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Nov 23, 2023
1 parent d3cdabf commit 8e767d7
Show file tree
Hide file tree
Showing 15 changed files with 651 additions and 363 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ With v7 we decided to use readily treemended version of monaco-editor called [@c

```yaml
"overrides": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
}
```

Expand Down Expand Up @@ -295,7 +295,7 @@ loader.config({ monaco });
If you use pnpm, you have to add `vscode` / `@codingame/monaco-vscode-api` as direct dependency (see the [following table](#monaco-editor--codingamemonaco-vscode-api-compatibility-table)), otherwise the installation will fail.

```json
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
```

## Monaco-editor / @codingame/monaco-vscode-api compatibility table
Expand All @@ -306,6 +306,7 @@ The following table describes which version of **monaco-languageclient** and **@

| monaco-languageclient | monaco-vscode-api | monaco-editor-treemended | monaco-editor | release date | comment |
| :---- | :---- | :--- | :--- | :--- | :--- |
| 7.1.0 | 1.83.10 | 1.83.10 | 0.44.0 | 2023-11-2x | |
| 7.0.2 | 1.83.7 | 1.83.7 | 0.44.0 | 2023-11-02 | |
| 7.0.1 | 1.83.5 | 1.83.5 | 0.44.0 | 2023-11-10 | |
| 7.0.0 | 1.83.5 | 1.83.5 | 0.44.0 | 2023-11-02 | Introduction of `@codingame/monaco-editor-treemended` |
Expand Down
836 changes: 540 additions & 296 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"type": "module",
"devDependencies": {
"@types/vscode": "~1.83.3",
"@typescript-eslint/eslint-plugin": "~6.9.1",
"@typescript-eslint/parser": "~6.9.1",
"@typescript-eslint/eslint-plugin": "~6.12.0",
"@typescript-eslint/parser": "~6.12.0",
"editorconfig": "~2.0.0",
"eslint": "~8.52.0",
"eslint": "~8.54.0",
"eslint-config-standard": "~17.1.0",
"eslint-plugin-header": "~3.1.1",
"eslint-plugin-import": "~2.29.0",
"eslint-plugin-promise": "~6.1.1",
"eslint-plugin-unused-imports": "~3.0.0",
"shx": "~0.3.4",
"typescript": "~5.2.2",
"vite": "~4.5.0"
"typescript": "~5.3.2",
"vite": "~5.0.2"
},
"overrides": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
6 changes: 5 additions & 1 deletion packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

All notable changes to this npm module are documented in this file.

## [7.1.0] - 2023-11-2x

- Updated to `[email protected]`.

## [7.0.2] - 2023-11-15

- Updated to `monaco-vscode-api` `1.83.7`.
- Updated to `monaco-vscode-api@1.83.7`.

## [7.0.1] - 2023-11-10

Expand Down
18 changes: 9 additions & 9 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-languageclient",
"version": "7.0.2",
"version": "7.1.0-next.0",
"description": "Monaco Language client implementation",
"author": {
"name": "TypeFox GmbH",
Expand Down Expand Up @@ -48,16 +48,16 @@
"License.txt"
],
"dependencies": {
"@codingame/monaco-vscode-editor-service-override": "~1.83.7",
"@codingame/monaco-vscode-languages-service-override": "~1.83.7",
"@codingame/monaco-vscode-model-service-override": "~1.83.7",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0",
"@codingame/monaco-vscode-editor-service-override": "~1.83.10",
"@codingame/monaco-vscode-languages-service-override": "~1.83.10",
"@codingame/monaco-vscode-model-service-override": "~1.83.10",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0",
"vscode-languageclient": "~9.0.1"
},
"peerDependencies": {
"monaco-editor": "0.44.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"peerDependenciesMeta": {
"monaco-editor": {
Expand All @@ -72,8 +72,8 @@
"vscode": "$vscode"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"scripts": {
"clean": "shx rm -fr lib *.tsbuildinfo",
Expand Down
9 changes: 5 additions & 4 deletions packages/client/src/monaco-vscode-api-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* ------------------------------------------------------------------------------------------ */

import { editor, Environment } from 'monaco-editor';
import { ILogService, initialize, LogLevel, StandaloneServices } from 'vscode/services';
import { ILogService, initialize, IWorkbenchConstructionOptions, StandaloneServices } from 'vscode/services';
import { initialize as initializeVscodeExtensions } from 'vscode/extensions';
import { OpenEditor } from '@codingame/monaco-vscode-editor-service-override';
import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
Expand All @@ -17,7 +17,7 @@ export interface MonacoEnvironmentEnhanced extends Environment {
export type InitializeServiceConfig = {
userServices?: editor.IEditorOverrideServices;
debugLogging?: boolean;
logLevel?: LogLevel
workspaceConfig?: IWorkbenchConstructionOptions;
};

export const wasVscodeApiInitialized = () => {
Expand Down Expand Up @@ -112,7 +112,8 @@ export const importAllServices = async (config?: InitializeServiceConfig) => {
}

await initialize(userServices);
if (lc.logLevel) {
StandaloneServices.get(ILogService).setLevel(lc.logLevel);
const logLevel = lc.workspaceConfig?.developmentOptions?.logLevel;
if (logLevel) {
StandaloneServices.get(ILogService).setLevel(logLevel);
}
};
5 changes: 5 additions & 0 deletions packages/examples/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this npm module are documented in this file.

## [7.1.0] - 2023-11-2x

- Updated to `[email protected]`.
- Updated usage of configuration service to be in line with `[email protected]`.

## [7.0.2] - 2023-11-15

- Updated to `[email protected]`.
Expand Down
36 changes: 18 additions & 18 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monaco-languageclient-examples",
"version": "7.0.2",
"version": "7.1.0-next.0",
"description": "Monaco Language client examples",
"author": {
"name": "TypeFox GmbH",
Expand Down Expand Up @@ -43,29 +43,29 @@
}
},
"dependencies": {
"@codingame/monaco-vscode-configuration-service-override": "~1.83.7",
"@codingame/monaco-vscode-editor-service-override": "~1.83.7",
"@codingame/monaco-vscode-files-service-override": "~1.83.7",
"@codingame/monaco-vscode-json-default-extension": "~1.83.7",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.7",
"@codingame/monaco-vscode-python-default-extension": "~1.83.7",
"@codingame/monaco-vscode-textmate-service-override": "~1.83.7",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.83.7",
"@codingame/monaco-vscode-theme-service-override": "~1.83.7",
"@codingame/monaco-vscode-language-pack-de": "~1.83.7",
"@codingame/monaco-vscode-language-pack-es": "~1.83.7",
"@codingame/monaco-vscode-language-pack-fr": "~1.83.7",
"@codingame/monaco-vscode-configuration-service-override": "~1.83.10",
"@codingame/monaco-vscode-editor-service-override": "~1.83.10",
"@codingame/monaco-vscode-files-service-override": "~1.83.10",
"@codingame/monaco-vscode-json-default-extension": "~1.83.10",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.10",
"@codingame/monaco-vscode-python-default-extension": "~1.83.10",
"@codingame/monaco-vscode-textmate-service-override": "~1.83.10",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.83.10",
"@codingame/monaco-vscode-theme-service-override": "~1.83.10",
"@codingame/monaco-vscode-language-pack-de": "~1.83.10",
"@codingame/monaco-vscode-language-pack-es": "~1.83.10",
"@codingame/monaco-vscode-language-pack-fr": "~1.83.10",
"express": "~4.18.2",
"langium": "~2.1.0",
"langium-statemachine-dsl": "~2.1.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.0.2",
"monaco-languageclient": "~7.1.0-next.0",
"pyright": "~1.1.333",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"request-light": "~0.7.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0",
"vscode-json-languageservice": "~5.3.7",
"vscode-languageclient": "~9.0.1",
"vscode-languageserver": "~9.0.1",
Expand All @@ -87,8 +87,8 @@
"vscode": "$vscode"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
15 changes: 13 additions & 2 deletions packages/examples/src/common/client-commons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,21 @@ export const performInit = async (vscodeApiInit: boolean) => {
userServices: {
...getThemeServiceOverride(),
...getTextmateServiceOverride(),
...getConfigurationServiceOverride(Uri.file('/workspace')),
...getConfigurationServiceOverride(),
...getKeybindingsServiceOverride()
},
debugLogging: true
debugLogging: true,
workspaceConfig: {
workspaceProvider: {
trusted: true,
workspace: {
workspaceUri: Uri.file('/workspace')
},
async open() {
return false;
}
}
}
});

// register the JSON language with Monaco
Expand Down
15 changes: 12 additions & 3 deletions packages/examples/src/langium/statemachineClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import getEditorServiceOverride from '@codingame/monaco-vscode-editor-service-ov
import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override';
import getThemeServiceOverride from '@codingame/monaco-vscode-theme-service-override';
import getTextmateServiceOverride from '@codingame/monaco-vscode-textmate-service-override';
import { LogLevel } from 'vscode/services';
import '@codingame/monaco-vscode-theme-defaults-default-extension';
import { Uri } from 'vscode';

Expand All @@ -28,12 +27,22 @@ export const setupStatemachineClient = async () => {
userServices: {
...getThemeServiceOverride(),
...getTextmateServiceOverride(),
...getConfigurationServiceOverride(Uri.file('/workspace')),
...getConfigurationServiceOverride(),
...getEditorServiceOverride(useOpenEditorStub),
...getKeybindingsServiceOverride()
},
debugLogging: true,
logLevel: LogLevel.Info
workspaceConfig: {
workspaceProvider: {
trusted: true,
workspace: {
workspaceUri: Uri.file('/workspace')
},
async open() {
return false;
}
}
}
};
await initServices(serviceConfig);

Expand Down
17 changes: 15 additions & 2 deletions packages/examples/src/python/client/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,24 @@ export const startPythonClient = async () => {
userServices: {
...getThemeServiceOverride(),
...getTextmateServiceOverride(),
...getConfigurationServiceOverride(Uri.file('/workspace')),
...getConfigurationServiceOverride(),
...getKeybindingsServiceOverride()
},
debugLogging: true,
logLevel: LogLevel.Debug
workspaceConfig: {
workspaceProvider: {
trusted: true,
workspace: {
workspaceUri: Uri.file('/workspace')
},
async open() {
return false;
}
},
developmentOptions: {
logLevel: LogLevel.Debug
}
}
});

console.log('Before ready themes');
Expand Down
6 changes: 3 additions & 3 deletions packages/verify/pnpm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.0.0",
"private": "true",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"monaco-languageclient": "~7.0.2",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"monaco-languageclient": "~7.1.0-next.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.10 <1.84.0"
},
"devDependencies": {
"shx": "~0.3.4"
Expand Down
8 changes: 4 additions & 4 deletions packages/verify/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"type": "module",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.0.2",
"monaco-languageclient-examples": "~7.0.2",
"monaco-languageclient": "~7.1.0-next.0",
"monaco-languageclient-examples": "~7.1.0-next.0",
"vscode-ws-jsonrpc": "~3.1.0"
},
"devDependencies": {
Expand All @@ -17,7 +17,7 @@
"monaco-editor": "$monaco-editor"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
8 changes: 4 additions & 4 deletions packages/verify/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"private": true,
"type": "module",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.0.2",
"monaco-languageclient-examples": "~7.0.2",
"monaco-languageclient": "~7.1.0-next.0",
"monaco-languageclient-examples": "~7.1.0-next.0",
"vscode-ws-jsonrpc": "~3.1.0"
},
"devDependencies": {
Expand All @@ -22,7 +22,7 @@
"monaco-editor": "$monaco-editor"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/verify/yarn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
"version": "0.0.0",
"private": "true",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0",
"monaco-languageclient": "~7.0.2"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0",
"monaco-languageclient": "~7.1.0-next.0"
},
"devDependencies": {
"shx": "~0.3.4"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.7 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.10 <1.84.0"
},
"scripts": {
"clean": "shx rm -fr ./node_modules yarn.lock",
Expand Down

0 comments on commit 8e767d7

Please sign in to comment.