Skip to content

Conversation

@tartarughina
Copy link
Collaborator

  • 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
Copy link
Collaborator

@playdohface playdohface left a 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,
Copy link
Collaborator

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.

@tartarughina
Copy link
Collaborator Author

Correct, a .bat needs a shell while a .exe works without

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants