castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
423 stars 26 forks source link

Add a folder-level setting to disable Solargraph #237

Open renchap opened 2 years ago

renchap commented 2 years ago

I have a mono-repo containing multiple apps, and only one of those is using Ruby.

In my VSCode workspace, I have a root folder configured for each app.

When I enable the "Use Bundler" setting in the extension, the language server is not starting properly because it tries to start for both my whole-project root folder (~/project) and the ruby app (~/project/app/ruby-app). But there is no ~/project/Gemfile, so it fails for this root folder.

It would be great to have a setting to disable the extension for some folders, or maybe enable it only for specific folders, when using a multi-root workspace.

At the moment, only 2 settings can be configured for a folder:

image

This setup works fine when I dont configure the extension to use bundler.