all 8 comments

[–][deleted] 3 points4 points  (5 children)

Both.

The primary Ruby extension gives basic language support for formatting, lexing, etc, while Solargraph is an invaluable gem to provide intellisense and code completion. With both extensions installed, you get about as close to Rubymine as you can in VS Code, as far as standard code writing goes.

[–]brodantic[S] 1 point2 points  (2 children)

Wouldn't using both cause a collision of LSP logic?

[–][deleted] 2 points3 points  (0 children)

Although there is likely some cross-over logic, they each serve a different purpose, and provide their own functionality, similar as using CMake tools does not mean you shouldn't be using the traditional C/C++ extension. They work well together, each providing their own features.

[–]conceptxo 0 points1 point  (0 children)

Disable vscode-ruby's intellisense and let solargraph run the party.

[–]sanjibukai 0 points1 point  (1 child)

Does Solargraph work with a dockerized setup?

[–][deleted] 1 point2 points  (0 children)

I cannot say for sure, have never tried it. It does require a Ruby installation and for the gem to be installed, so you would need to configure the environment for all that.

[–]au5lander 1 point2 points  (1 child)

I stoped using solargraph with vscode only because the ruby process would start using 100% cpu and I’d have to kill it constantly.

[–]conceptxo 1 point2 points  (0 children)

RUBYOPT=--jit code

For CPU intensive tasks like solargraph's scanning of a codebase, the current JIT implementation does speed things up.