Skip to content

Commit

Permalink
VScode internal console auto-connect fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
BoykoAlex committed Jun 27, 2022
1 parent dc36d17 commit f5f0dcb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class SpringBootDebugConfigProvider implements DebugConfigurationProvider {

interface ProcessEvent {
type: string;
pid: number;
processId: number;
shellProcessId: number
}

Expand Down Expand Up @@ -88,8 +88,8 @@ async function handleCustomDebugEvent(e: VSCode.DebugSessionCustomEvent): Promis
}

async function getAppPid(e: ProcessEvent): Promise<number> {
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);
Expand Down

0 comments on commit f5f0dcb

Please sign in to comment.