-
Notifications
You must be signed in to change notification settings - Fork 202
Make add-on loading configurable #3411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the report. I think there's an underlying root cause here that we're missing. If the Ruby LSP is being initialized correctly, it should compose the bundle under the What editor are you using? Did you configure the LSP command yourself? Are you overriding |
I think the feature is useful even if the scope of the gems search is the local repository. For example, in out organization there are over 250 developers, we mantain 2 custom addons, but some users don't want to use all of them. Currently the aproach is for the addon implementer to provide a setting for enable/disable the addon based on the |
@domingo2000 yeah, I'm not opposed to allowing add-ons being disabled. We do want to allow remembering the status of the add-on and then configuring that. However, what @rolandcrosby-columntax is experiencing is a bug that's not related to the ability to disable/enable add-ons. That simply shouldn't happen. |
Not sure if it's exactly the same as the original problem but a problem we're seeing is A way to either disable |
I have checked that this feature is not already implemented
Use case
The Ruby LSP currently unconditionally tries to load add-ons from any
ruby_lsp/**/addon.rb
file in any installed gem. If you have a gem installed that has such a file, but you don't want the LSP to load its addon, there doesn't seem to be a way around this.Currently this is just causing noisy logs for me -- I have the tapioca gem installed, and every time the Ruby LSP starts, it prints a stack trace indicating that this version constraint isn't satisfied -- but in principle I'd like to be able to configure which addons the LSP loads or doesn't load.
Description
Allow the user to configure specific addons that the Ruby LSP should load or not load, instead of unconditionally trying to load an addon for every installed gem that has a
ruby_lsp/**/addon.rb
file.Implementation
To solve my immediate problem, I'd be fine with a configuration option that lets me specify a deny-list of addons that the LSP shouldn't try to load, but I can imagine a use case for only loading installed addons that occur in an explicitly-specified list.
The text was updated successfully, but these errors were encountered: