Skip to content

Commit

Permalink
Use just shell-permitted characters in debug env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sdedic committed Feb 7, 2024
1 parent b559ead commit 80b2d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions java/java.lsp.server/vscode/src/nbcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ export function launch(
ideArgs.push('-J-Dnetbeans.logger.console=true');
}
ideArgs.push(`-J-Dnetbeans.extra.dirs=${clusterPath}`)
if (env['netbeans.extra.options']) {
ideArgs.push(...env['netbeans.extra.options'].split(' '));
if (env['netbeans_extra_options']) {
ideArgs.push(...env['netbeans_extra_options'].split(' '));
}
ideArgs.push(...extraArgs);
if (env['netbeans_debug'] && extraArgs && extraArgs.find(s => s.includes("--list"))) {
Expand Down
2 changes: 1 addition & 1 deletion java/java.lsp.server/vscode/src/test/runTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function main() {
extensionTestsPath,
extensionTestsEnv: {
'ENABLE_CONSOLE_LOG' : 'true',
"netbeans.extra.options" : `-J-Dproject.limitScanRoot=${outRoot} -J-Dnetbeans.logger.console=true`
"netbeans_extra_options" : `-J-Dproject.limitScanRoot=${outRoot} -J-Dnetbeans.logger.console=true`
},
launchArgs: [
'--disable-extensions',
Expand Down

0 comments on commit 80b2d73

Please sign in to comment.