Skip to content

Commit a58fa93

Browse files
committed
debug: do not register things lazily
fixes microsoft#105278
1 parent 2951e1f commit a58fa93

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

src/vs/workbench/contrib/debug/browser/debug.contribution.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,19 @@ import { DebugProgressContribution } from 'vs/workbench/contrib/debug/browser/de
5151
import { DebugTitleContribution } from 'vs/workbench/contrib/debug/browser/debugTitle';
5252
import { Codicon } from 'vs/base/common/codicons';
5353
import { registerColors } from 'vs/workbench/contrib/debug/browser/debugColors';
54-
import { debugAdapterRegisteredEmitter } from 'vs/workbench/contrib/debug/browser/debugConfigurationManager';
5554
import { DebugEditorContribution } from 'vs/workbench/contrib/debug/browser/debugEditorContribution';
5655

5756
const registry = Registry.as<IWorkbenchActionRegistry>(WorkbenchActionRegistryExtensions.WorkbenchActions);
57+
const debugCategory = nls.localize('debugCategory', "Debug");
58+
const runCategroy = nls.localize('runCategory', "Run");
5859
// register service
59-
debugAdapterRegisteredEmitter.event(() => {
60-
// Register these contributions lazily only once a debug adapter extension has been registered
61-
registerWorkbenchContributions();
62-
registerColors();
63-
registerCommandsAndActions();
64-
registerDebugMenu();
65-
});
60+
registerWorkbenchContributions();
61+
registerColors();
62+
registerCommandsAndActions();
63+
registerDebugMenu();
6664
registerEditorActions();
6765
registerCommands();
6866
registerDebugPanel();
69-
const debugCategory = nls.localize('debugCategory', "Debug");
70-
const runCategroy = nls.localize('runCategory', "Run");
7167
registry.registerWorkbenchAction(SyncActionDescriptor.from(StartAction, { primary: KeyCode.F5 }, CONTEXT_IN_DEBUG_MODE.toNegated()), 'Debug: Start Debugging', debugCategory);
7268
registry.registerWorkbenchAction(SyncActionDescriptor.from(RunAction, { primary: KeyMod.CtrlCmd | KeyCode.F5, mac: { primary: KeyMod.WinCtrl | KeyCode.F5 } }), 'Run: Start Without Debugging', runCategroy);
7369

0 commit comments

Comments
 (0)