Skip to content

Conversation

@DonJayamanne
Copy link
Contributor

@DonJayamanne DonJayamanne commented Oct 10, 2025

This reverts commit 952a5f7.

Fixes #17042

public execObservable(file: string, args: string[], options: SpawnOptions = {}): ObservableExecutionResult<string> {
const spawnOptions = this.getDefaultOptions(options);
const proc = spawn(fileToCommandArgument(file), args, spawnOptions);
const proc = spawn(file, args, spawnOptions);
Copy link
Contributor Author

@DonJayamanne DonJayamanne Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't quote file paths in spawn here
As the first argument itself is the file, & second is the arguments.
Only cases where the command is a combination of file and arguments do we need to quote the file.

@DonJayamanne DonJayamanne marked this pull request as ready for review October 10, 2025 05:43
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 10, 2025
@DonJayamanne DonJayamanne merged commit 20fbd3b into main Oct 10, 2025
49 of 50 checks passed
@DonJayamanne DonJayamanne deleted the don/fixQuotes branch October 10, 2025 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unable to run notebook cells with spaces in path

3 participants