Skip to content

Commit 5ba1466

Browse files
authoredOct 23, 2024··
fix: Monaco editor context menu in build mode (#1905)
1 parent b2cfa78 commit 5ba1466

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

Diff for: ‎packages/client/setup/monaco.ts

+5-6
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,13 @@ class ContextViewService2 extends ContextViewService {
5151
}
5252
}
5353

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

59+
const setup = createSingletonPromise(async () => {
6060
const defaults = monaco.languages.typescript.typescriptDefaults
61-
6261
defaults.setCompilerOptions({
6362
...defaults.getCompilerOptions(),
6463
strict: true,

0 commit comments

Comments
 (0)
Please sign in to comment.