From a08377f8e44e0f97140e244e9403955a4a6fcb45 Mon Sep 17 00:00:00 2001 From: zhangjian <1018zhangjian@gmail.com> Date: Mon, 16 May 2022 22:30:28 +0800 Subject: [PATCH] fix: Select language first when starting debug Signed-off-by: zhangjian <1018zhangjian@gmail.com> --- src/main/commands/DebugCommand.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/commands/DebugCommand.ts b/src/main/commands/DebugCommand.ts index 14518a5c..563362ca 100644 --- a/src/main/commands/DebugCommand.ts +++ b/src/main/commands/DebugCommand.ts @@ -52,6 +52,8 @@ export default class DebugCommand implements ICommand { this.validateDebugConfig(this.container); + const debugProvider = await this.getDebugProvider(); + if (!param?.command) { const status = await node.getStatus(true); @@ -64,8 +66,6 @@ export default class DebugCommand implements ICommand { } } - const debugProvider = await this.getDebugProvider(); - await waitForSync(node, DEBUG); this.startDebugging(node, debugProvider);