-
Notifications
You must be signed in to change notification settings - Fork 34
Revert quoting all paths on Windows #161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Revert quoting all paths on Windows #161
Conversation
tartarughina
commented
Dec 22, 2025
- Add double quotes only to paths that are going to be used by the node proxy as args
- Rust functions are already handling the instance where a space is present in the path
- Add double quotes only to paths that are going to be used by the node proxy as args - Rust functions are already handling the instance where a space is present in the path
- Remove the shell mode from the proxy for Win32 as no longer relying on jdtls.bat - Remove quoting function along with tests
playdohface
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I understanding this correctly that we don't launch java.exe through a shell at all, and only launch scripts in Windows need a shell?
| const lsp = spawn(command, args, { | ||
| shell: isWindows, | ||
| detached: false | ||
| shell: (isWindows && bin.endsWith(".bat")) ? true : false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: unnecessary ternary expression here. But if we always have to predicate isWindows with bin.endsWith(".bat"), we might factor that out.
|
Correct, a .bat needs a shell while a .exe works without |