Skip to content

Commit

Permalink
Update to monaco-vscode-api 1.83.15
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Dec 5, 2023
1 parent 8ea285b commit 9895485
Show file tree
Hide file tree
Showing 10 changed files with 325 additions and 337 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,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.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
}
```

Expand Down Expand Up @@ -308,7 +308,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.12 <1.84.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
```

## Monaco-editor / @codingame/monaco-vscode-api compatibility table
Expand Down
550 changes: 275 additions & 275 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 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.12.0",
"@typescript-eslint/parser": "~6.12.0",
"@typescript-eslint/eslint-plugin": "~6.13.2",
"@typescript-eslint/parser": "~6.13.2",
"editorconfig": "~2.0.0",
"eslint": "~8.54.0",
"eslint": "~8.55.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.3.2",
"vite": "~5.0.2"
"vite": "~5.0.5"
},
"overrides": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
16 changes: 8 additions & 8 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@
"License.txt"
],
"dependencies": {
"@codingame/monaco-vscode-editor-service-override": "~1.83.12",
"@codingame/monaco-vscode-languages-service-override": "~1.83.12",
"@codingame/monaco-vscode-model-service-override": "~1.83.12",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0",
"@codingame/monaco-vscode-editor-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-languages-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-model-service-override": "~1.83.15-next.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0",
"vscode-languageclient": "~9.0.1"
},
"peerDependencies": {
"monaco-editor": "0.44.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"peerDependenciesMeta": {
"monaco-editor": {
Expand All @@ -72,8 +72,8 @@
"vscode": "$vscode"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"scripts": {
"clean": "shx rm -fr lib *.tsbuildinfo",
Expand Down
14 changes: 1 addition & 13 deletions packages/client/src/monaco-vscode-api-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import { editor, Environment } from 'monaco-editor';
import { ILogService, initialize, IWorkbenchConstructionOptions, StandaloneServices } from 'vscode/services';
import { initialize as initializeVscodeExtensions } from 'vscode/extensions';
import 'vscode/localExtensionHost';
import { OpenEditor } from '@codingame/monaco-vscode-editor-service-override';
import getLanguagesServiceOverride from '@codingame/monaco-vscode-languages-service-override';
import getModelServiceOverride from '@codingame/monaco-vscode-model-service-override';
Expand All @@ -25,11 +25,6 @@ export const wasVscodeApiInitialized = () => {
};

export const initServices = async (config?: InitializeServiceConfig) => {
await initVscodeServices(config);
await initVscodeExtensions(config);
};

export const initVscodeServices = async (config?: InitializeServiceConfig) => {
if (!wasVscodeApiInitialized()) {
await importAllServices(config);
if (config?.debugLogging === true) {
Expand All @@ -46,13 +41,6 @@ export const initVscodeServices = async (config?: InitializeServiceConfig) => {
}
};

export const initVscodeExtensions = async (config?: InitializeServiceConfig) => {
await initializeVscodeExtensions();
if (config?.debugLogging === true) {
console.log('Initialization of vscode extensions completed successfully.');
}
};

export const useOpenEditorStub: OpenEditor = async (modelRef, options, sideBySide) => {
console.log('Received open editor call with parameters: ', modelRef, options, sideBySide);
return undefined;
Expand Down
40 changes: 20 additions & 20 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,29 @@
}
},
"dependencies": {
"@codingame/monaco-vscode-configuration-service-override": "~1.83.12",
"@codingame/monaco-vscode-editor-service-override": "~1.83.12",
"@codingame/monaco-vscode-files-service-override": "~1.83.12",
"@codingame/monaco-vscode-json-default-extension": "~1.83.12",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.12",
"@codingame/monaco-vscode-python-default-extension": "~1.83.12",
"@codingame/monaco-vscode-textmate-service-override": "~1.83.12",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.83.12",
"@codingame/monaco-vscode-theme-service-override": "~1.83.12",
"@codingame/monaco-vscode-language-pack-de": "~1.83.12",
"@codingame/monaco-vscode-language-pack-es": "~1.83.12",
"@codingame/monaco-vscode-language-pack-fr": "~1.83.12",
"@codingame/monaco-vscode-configuration-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-editor-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-files-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-json-default-extension": "~1.83.15-next.0",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-python-default-extension": "~1.83.15-next.0",
"@codingame/monaco-vscode-textmate-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-theme-defaults-default-extension": "~1.83.15-next.0",
"@codingame/monaco-vscode-theme-service-override": "~1.83.15-next.0",
"@codingame/monaco-vscode-language-pack-de": "~1.83.15-next.0",
"@codingame/monaco-vscode-language-pack-es": "~1.83.15-next.0",
"@codingame/monaco-vscode-language-pack-fr": "~1.83.15-next.0",
"express": "~4.18.2",
"langium": "~2.1.0",
"langium-statemachine-dsl": "~2.1.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.1.0",
"pyright": "~1.1.333",
"pyright": "~1.1.338",
"react": "~18.2.0",
"react-dom": "~18.2.0",
"request-light": "~0.7.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0",
"vscode-json-languageservice": "~5.3.7",
"vscode-languageclient": "~9.0.1",
"vscode-languageserver": "~9.0.1",
Expand All @@ -76,9 +76,9 @@
"devDependencies": {
"@types/ws": "~8.5.6",
"@types/express": "~4.17.18",
"@types/node": "~18.18.8",
"@types/react": "~18.2.33",
"@types/react-dom": "~18.2.14",
"@types/node": "~18.18.14",
"@types/react": "~18.2.42",
"@types/react-dom": "~18.2.17",
"ts-node": "~10.9.1",
"vscode-languageserver-types": "~3.17.5"
},
Expand All @@ -87,8 +87,8 @@
"vscode": "$vscode"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
4 changes: 2 additions & 2 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.12 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"monaco-languageclient": "~7.1.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.12 <1.84.0"
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.15-next.0 <1.84.0"
},
"devDependencies": {
"shx": "~0.3.4"
Expand Down
4 changes: 2 additions & 2 deletions packages/verify/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.1.0",
"monaco-languageclient-examples": "~7.1.0",
Expand All @@ -17,7 +17,7 @@
"monaco-editor": "$monaco-editor"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/verify/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"private": true,
"type": "module",
"dependencies": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"monaco-editor-workers": "~0.44.0",
"monaco-languageclient": "~7.1.0",
"monaco-languageclient-examples": "~7.1.0",
Expand All @@ -22,7 +22,7 @@
"monaco-editor": "$monaco-editor"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0"
},
"volta": {
"node": "18.18.2",
Expand Down
4 changes: 2 additions & 2 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.12 <1.84.0",
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0",
"monaco-languageclient": "~7.1.0"
},
"devDependencies": {
"shx": "~0.3.4"
},
"resolutions": {
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.12 <1.84.0"
"monaco-editor": "npm:@codingame/monaco-editor-treemended@>=1.83.15-next.0 <1.84.0"
},
"scripts": {
"clean": "shx rm -fr ./node_modules yarn.lock",
Expand Down

0 comments on commit 9895485

Please sign in to comment.