Skip to content
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

[#1310] Add a configuration option for advertised LSP providers. #1341

Merged
merged 2 commits into from
Jul 4, 2022

Conversation

the-mikedavis
Copy link
Contributor

Description

Adds a configuration option providers with enabled and disabled lists. These can be used to configure which providers the language server should advertise to the client in the ServerCapabilities message. For example, to enable signature help:

# erlang_ls.config
providers:
  enabled:
    - signature-help

This could also be useful to bring in #980 as disabled-by-default.

The implementation is mostly inspired by the lenses configuration option which takes the same shape.

Fixes #1310.

@robertoaloi robertoaloi merged commit 9f70a42 into erlang-ls:main Jul 4, 2022
@robertoaloi
Copy link
Member

Thanks!

@the-mikedavis the-mikedavis deleted the md-configure-providers branch July 4, 2022 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configuration of LSP providers
2 participants