Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Commit

Permalink
Wrap BUNDLE_GEMFILE path in quotes
Browse files Browse the repository at this point in the history
Allows the path to include spaces.
  • Loading branch information
stilist authored Jul 28, 2023
1 parent 1eb4590 commit 11fff35
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,20 +436,20 @@ export default class Client implements ClientInterface {
// If a custom Gemfile was configured outside of the project, use that. Otherwise, prefer our custom bundle over the
// app's bundle
if (customBundleGemfile.length > 0) {
bundleGemfile = `BUNDLE_GEMFILE=${customBundleGemfile}`;
bundleGemfile = `BUNDLE_GEMFILE="${customBundleGemfile}"`;
} else if (
fs.existsSync(path.join(this.workingFolder, ".ruby-lsp", "Gemfile"))
) {
bundleGemfile = `BUNDLE_GEMFILE=${path.join(
bundleGemfile = `BUNDLE_GEMFILE="${path.join(
this.workingFolder,
".ruby-lsp",
"Gemfile",
)}`;
)}"`;
} else {
bundleGemfile = `BUNDLE_GEMFILE=${path.join(
bundleGemfile = `BUNDLE_GEMFILE="${path.join(
this.workingFolder,
"Gemfile",
)}`;
)}"`;
}

const result = await asyncExec(
Expand Down

0 comments on commit 11fff35

Please sign in to comment.