Skip to content

Commit

Permalink
fix: adapt code to lib update
Browse files Browse the repository at this point in the history
  • Loading branch information
Loïc Mangeonjean committed Jan 25, 2024
1 parent 309aa76 commit 8512eb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ let services: monaco.editor.IEditorOverrideServices = {
...getExtensionServiceOverride(),
...getModelServiceOverride(),
...getDialogsServiceOverride(),
...getConfigurationServiceOverride(monaco.Uri.file('/tmp/project')),
...getConfigurationServiceOverride(),
...getKeybindingsServiceOverride({
shouldUseGlobalKeybindings () {
return useGlobalPicker()
Expand Down Expand Up @@ -69,10 +69,8 @@ export async function initialize (): Promise<void> {
// wait a short time for the services to be registered
await new Promise(resolve => setTimeout(resolve, 0))

await initializeServices(services)
await initializeServices(services, undefined, { workspaceProvider: { open: async () => false, workspace: { workspaceUri: monaco.Uri.file('/tmp/project') }, trusted: true } })
StandaloneServices.get(ILogService).setLevel(LogLevel.Off)

await initializeExtensions()
}

export {
Expand Down

0 comments on commit 8512eb0

Please sign in to comment.