diff --git a/lib/actions/ui.js b/lib/actions/ui.js index 50befc93..89abfd75 100644 --- a/lib/actions/ui.js +++ b/lib/actions/ui.js @@ -192,7 +192,7 @@ export function openFile (path) { // We need to use 'php-escape-shell' property this way // until this eslint issue will be fixed: // https://github.com/eslint/eslint/issues/6755 - let command = shellEscape.php_escapeshellcmd(path); + let command = shellEscape.php_escapeshellcmd(path).replace(/ /g, '\\ '); if (stats.isDirectory()) { command = `cd ${command}\n`; } else if (stats.isFile() && isExecutable(stats)) {