From f39f2ca58f5f526f7dc682c3b5039edf3b3f08d4 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Mon, 6 Jul 2020 18:25:39 -0600 Subject: [PATCH] LSP working for Ruby It is my dream that all language servers would be so easy --- backend/src/langs.ts | 1 + scripts/docker-install-phase3c.bash | 1 + scripts/docker-install-phase4.bash | 3 +++ 3 files changed, 5 insertions(+) diff --git a/backend/src/langs.ts b/backend/src/langs.ts index d027af8..bce605c 100644 --- a/backend/src/langs.ts +++ b/backend/src/langs.ts @@ -819,6 +819,7 @@ binding_irb = IRB::Irb.new(workspace) binding_irb.run(IRB.conf) `, run: "ruby main.rb", + lsp: "solargraph stdio", template: `puts "Hello, world!" `, }, diff --git a/scripts/docker-install-phase3c.bash b/scripts/docker-install-phase3c.bash index e4271e4..e68abee 100755 --- a/scripts/docker-install-phase3c.bash +++ b/scripts/docker-install-phase3c.bash @@ -57,6 +57,7 @@ qemu-user-static # Ruby ruby +ruby-dev " diff --git a/scripts/docker-install-phase4.bash b/scripts/docker-install-phase4.bash index 843e372..3bad91e 100755 --- a/scripts/docker-install-phase4.bash +++ b/scripts/docker-install-phase4.bash @@ -50,6 +50,9 @@ cpanm -n Devel::REPL # ReasonML npm install -g bs-platform +# Ruby +gem install solargraph + # Rust rustup component add rls rust-analysis rust-src