Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

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

Merged
robertoaloi merged 2 commits intoerlang-ls:mainfrom
the-mikedavis:md-configure-providers
Jul 4, 2022
Merged

[#1310] Add a configuration option for advertised LSP providers.#1341
robertoaloi merged 2 commits intoerlang-ls:mainfrom
the-mikedavis:md-configure-providers

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.

@the-mikedavis the-mikedavis force-pushed the md-configure-providers branch from 93f27ca to 2b9bc0c Compare June 22, 2022 15:06
@the-mikedavis the-mikedavis force-pushed the md-configure-providers branch from 2b9bc0c to e2fa7d2 Compare June 22, 2022 15:27
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow configuration of LSP providers

2 participants