We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6025fd commit 5b86043Copy full SHA for 5b86043
src/plugin.js
@@ -67,7 +67,7 @@ export async function spawnServer(opts, killOnExit = true) {
67
const tmpdir = os.tmpdir();
68
const filepath = path.join(tmpdir, `prettier-ruby-parser-${process.pid}.txt`);
69
70
- const currentDir = opts.filepath || process.cwd();
+ const currentFile = opts.filepath || process.cwd();
71
72
const server = spawn(
73
opts.rubyExecutablePath || "ruby",
@@ -77,7 +77,7 @@ export async function spawnServer(opts, killOnExit = true) {
77
filepath
78
],
79
{
80
- cwd: path.dirname(currentDir),
+ cwd: path.dirname(currentFile),
81
env: Object.assign({}, process.env, { LANG: getLang() }),
82
stdio: ["ignore", "ignore", "inherit"],
83
detached: true
0 commit comments