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

Remove newlines from Ruby activation script #904

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Nov 20, 2023

Motivation

Closes Shopify/ruby-lsp#1708, closes Shopify/ruby-lsp#1175

Our Ruby activation script was too long, so we broke it into multiple lines. Based on the information shared in the issue, Windows does not seem to accept line breaks in terminal input and that ends up causing a syntax error.

Implementation

Instead of using a multiline string interpolation, I just changed to write the script in parts inside an array, which we join at the end.

src/ruby.ts Show resolved Hide resolved
@vinistock vinistock force-pushed the vs/remove_newlines_from_ruby_activation_script branch from bcf8903 to dbdafcf Compare November 20, 2023 15:32
@vinistock vinistock merged commit 8bc72ea into main Nov 20, 2023
4 checks passed
@vinistock vinistock deleted the vs/remove_newlines_from_ruby_activation_script branch November 20, 2023 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bugfix This PR will fix an existing bug
Projects
None yet
2 participants