Skip to content

Commit

Permalink
fix: Monaco editor context menu in build mode (#1905)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Oct 23, 2024
1 parent b2cfa78 commit 5ba1466
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/client/setup/monaco.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ class ContextViewService2 extends ContextViewService {
}
}

const setup = createSingletonPromise(async () => {
// Initialize services first, otherwise we can't override them.
StandaloneServices.initialize({
contextViewService: new SyncDescriptor(ContextViewService2, [], true),
})
// Initialize services first, otherwise we can't override them.
StandaloneServices.initialize({
contextViewService: new SyncDescriptor(ContextViewService2, [], true),
})

const setup = createSingletonPromise(async () => {
const defaults = monaco.languages.typescript.typescriptDefaults

defaults.setCompilerOptions({
...defaults.getCompilerOptions(),
strict: true,
Expand Down

0 comments on commit 5ba1466

Please sign in to comment.