Skip to content

Commit 3d6a6e6

Browse files
Update init
1 parent d3a29e0 commit 3d6a6e6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/extension/common/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export namespace Commands {
3535
export const ViewOutput = 'debugpy.viewOutput';
3636
export const ClearStorage = 'debugpy.clearCacheAndReload';
3737
export const Enable_SourceMap_Support = 'debugpy.enableSourceMapSupport';
38+
export const SelectDebugConfig ='debugpy.SelectAndInsertDebugConfiguration'
3839
export const Set_Interpreter = 'python.setInterpreter';
3940
export const GetSelectedInterpreterPath = 'python.interpreterPath';
4041
}

src/extension/extensionInit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import { ignoreErrors } from './common/promiseUtils';
3636

3737
export async function registerDebugger(context: IExtensionContext): Promise<void> {
3838
const childProcessAttachService = new ChildProcessAttachService();
39-
4039
const childProcessAttachEventHandler = new ChildProcessAttachEventHandler(childProcessAttachService);
40+
4141
context.subscriptions.push(
4242
debug.onDidReceiveDebugSessionCustomEvent((e) => {
4343
ignoreErrors(childProcessAttachEventHandler.handleCustomEvent(e));
@@ -108,7 +108,7 @@ export async function registerDebugger(context: IExtensionContext): Promise<void
108108
const launchJsonUpdaterServiceHelper = new LaunchJsonUpdaterServiceHelper(debugConfigProvider);
109109
context.subscriptions.push(
110110
registerCommand(
111-
'debugpy.SelectAndInsertDebugConfiguration',
111+
Commands.SelectDebugConfig,
112112
launchJsonUpdaterServiceHelper.selectAndInsertDebugConfig,
113113
launchJsonUpdaterServiceHelper,
114114
),

0 commit comments

Comments
 (0)