From 8c7e4a3d23a621847b35719dec949bc6203cc55e Mon Sep 17 00:00:00 2001 From: Taylore Thornton Date: Mon, 9 Jun 2025 16:29:56 -0400 Subject: [PATCH 1/2] support string cp splitting --- src/configurationProvider.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/configurationProvider.ts b/src/configurationProvider.ts index 5b4ce384..176fddf5 100644 --- a/src/configurationProvider.ts +++ b/src/configurationProvider.ts @@ -471,14 +471,16 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration const paths: string[] = []; let replaced: boolean = false; for (const p of pathArray) { - if (pathVariables.includes(p)) { - if (!replaced) { - paths.push(...resolvedPaths); - replaced = true; + for (const splitPath of p.split(':')) { + if (pathVariables.includes(splitPath)) { + if (!replaced) { + paths.push(...resolvedPaths); + replaced = true; + } + continue; } - continue; + paths.push(splitPath); } - paths.push(p); } return this.filterExcluded(folder, paths); } From c3f94d5694fbdedfb49406c46c4dfde4c9919add Mon Sep 17 00:00:00 2001 From: Taylore Thornton Date: Mon, 1 Dec 2025 23:05:59 -0500 Subject: [PATCH 2/2] finally fix this :P --- src/configurationProvider.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/configurationProvider.ts b/src/configurationProvider.ts index 176fddf5..92db8e11 100644 --- a/src/configurationProvider.ts +++ b/src/configurationProvider.ts @@ -471,7 +471,7 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration const paths: string[] = []; let replaced: boolean = false; for (const p of pathArray) { - for (const splitPath of p.split(':')) { + for (const splitPath of p.split(process.platform === 'win32' ? ';' : ':')) { if (pathVariables.includes(splitPath)) { if (!replaced) { paths.push(...resolvedPaths);