Skip to content

Commit

Permalink
fix(editor-monaco): remove workaroud code for services initialization (
Browse files Browse the repository at this point in the history
…#4659)

The upstream [email protected] now contains the fix.
  • Loading branch information
char0n authored Dec 12, 2023
1 parent deb38bc commit 55b60ee
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 39 deletions.
62 changes: 31 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
"short-unique-id": "^4.4.4",
"styled-components": "^6.1.1",
"swagger-ui-react": "^5.10.3",
"vscode": "npm:@codingame/monaco-vscode-api@=1.83.15",
"vscode": "npm:@codingame/monaco-vscode-api@=1.83.16",
"vscode-languageclient": "^9.0.1",
"vscode-languageserver-textdocument": "^1.0.11"
},
Expand Down
7 changes: 0 additions & 7 deletions src/plugins/editor-monaco/after-load.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { initialize as initializeMonacoServices } from 'vscode/services';
import { IExtensionService } from 'vscode/vscode/vs/workbench/services/extensions/common/extensions';
import { registerServiceInitializeParticipant } from 'vscode/lifecycle';
import 'vscode/localExtensionHost';

import lazyMonacoContribution from './monaco-contribution/index.js';
Expand Down Expand Up @@ -35,11 +33,6 @@ function afterLoad(system) {

(async () => {
try {
/**
* {@link https://github.com/CodinGame/monaco-vscode-api/issues/283}
* @TODO([email protected]): this can go away with next release of vscode >1.83.15
*/
registerServiceInitializeParticipant((accessor) => accessor.get(IExtensionService));
await initializeMonacoServices({});
system.monacoInitializationDeferred().resolve();
} catch (error) {
Expand Down

0 comments on commit 55b60ee

Please sign in to comment.