Skip to content

Commit 00a5599

Browse files
support string classpath splitting (#1559)
* support string cp splitting * finally fix this :P --------- Co-authored-by: Changyong Gong <shawn.gong@hotmail.com>
1 parent 799f165 commit 00a5599

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/configurationProvider.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,16 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
471471
const paths: string[] = [];
472472
let replaced: boolean = false;
473473
for (const p of pathArray) {
474-
if (pathVariables.includes(p)) {
475-
if (!replaced) {
476-
paths.push(...resolvedPaths);
477-
replaced = true;
474+
for (const splitPath of p.split(process.platform === 'win32' ? ';' : ':')) {
475+
if (pathVariables.includes(splitPath)) {
476+
if (!replaced) {
477+
paths.push(...resolvedPaths);
478+
replaced = true;
479+
}
480+
continue;
478481
}
479-
continue;
482+
paths.push(splitPath);
480483
}
481-
paths.push(p);
482484
}
483485
return this.filterExcluded(folder, paths);
484486
}

0 commit comments

Comments
 (0)