From f5f0dcbc50a42751b32ba20268115782b21c4ca4 Mon Sep 17 00:00:00 2001 From: aboyko Date: Mon, 27 Jun 2022 12:47:51 -0400 Subject: [PATCH] VScode internal console auto-connect fixed --- .../vscode-spring-boot/lib/debug-config-provider.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts index 0afae8931..69dea4f4b 100644 --- a/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts +++ b/vscode-extensions/vscode-spring-boot/lib/debug-config-provider.ts @@ -34,7 +34,7 @@ class SpringBootDebugConfigProvider implements DebugConfigurationProvider { interface ProcessEvent { type: string; - pid: number; + processId: number; shellProcessId: number } @@ -88,8 +88,8 @@ async function handleCustomDebugEvent(e: VSCode.DebugSessionCustomEvent): Promis } async function getAppPid(e: ProcessEvent): Promise { - if (e.pid) { - return e.pid; + if (e.processId && e.processId > 0) { + return e.processId; } else if (e.shellProcessId) { const processes = await psList(); const appProcess = processes.find(p => p.ppid === e.shellProcessId);