Skip to content

Commit 712da31

Browse files
authored
Merge pull request #779 from CodinGame/lmn/fix-custom-editor-registration
Make custom editor service instantiation eager
2 parents f7c8650 + 7fac377 commit 712da31

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/service-override/viewCommon.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,11 @@ function getServiceOverride(_webviewIframeAlternateDomains?: string): IEditorOve
124124
true
125125
),
126126
[IHistoryService.toString()]: new SyncDescriptor(HistoryService, [], false),
127-
[ICustomEditorService.toString()]: new SyncDescriptor(CustomEditorService, [], true),
127+
[ICustomEditorService.toString()]: new SyncDescriptor(
128+
CustomEditorService,
129+
[],
130+
/** CustomEditorService registers the contribution point, so its instantiation can't be delayed */ false
131+
),
128132
[IWebviewService.toString()]: new SyncDescriptor(WebviewService, [], true),
129133
[IWebviewViewService.toString()]: new SyncDescriptor(WebviewViewService, [], true),
130134
[IWebviewWorkbenchService.toString()]: new SyncDescriptor(WebviewEditorService, [], true),

0 commit comments

Comments
 (0)