From bbd867bc0c7600167441f1feedc83c8c03dcd118 Mon Sep 17 00:00:00 2001 From: Joni Lahtinen Date: Mon, 29 Jul 2024 15:06:04 +0300 Subject: [PATCH] Use shell for spawned server Allows user to select what ruby binary is run at the end. e.g with rvm only enabled ruby binary this can be handy --- src/plugin.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugin.js b/src/plugin.js index 71d2030b..025cf799 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -71,7 +71,8 @@ export async function spawnServer(opts, killOnExit = true) { const options = { env: Object.assign({}, process.env, { LANG: getLang() }), stdio: ["ignore", "ignore", "inherit"], - detached: true + detached: true, + shell: true // TODO: allow user to select shell }; if (opts.filepath) {