vscode-rufo icon indicating copy to clipboard operation
vscode-rufo copied to clipboard

fix: file path containing spaces in rufo command not handled properly

Open taham8875 opened this issue 11 months ago • 0 comments

Hello maintainers,

I've encountered an issue where executing the rufo command in the vscode-rufo extension failed when the file path contained spaces. For instance, a file was located at ~/Documents/GitHub/problem-solving/1. Two Sum/main.rb, and running rufo directly on this file path broke due to misinterpretation by the command line.

image

To resolve this issue, I've made a simple adjustment in the code. Specifically, I added single quotes around the file path parameter in the rufo command, ensuring that the command line interprets it as a single entity rather than separate parameters.

This change fixes the issue #24

Thank you for considering this pull request. Let me know if you have any questions.

Best regards

taham8875 avatar Mar 03 '24 09:03 taham8875