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

Make the LSP configurable #1974

Merged
merged 5 commits into from
Jul 2, 2024
Merged

Make the LSP configurable #1974

merged 5 commits into from
Jul 2, 2024

Conversation

thufschmitt
Copy link
Contributor

Make the LSP options configurable

Take into account the configuration sent by the client through InitializeParams.initializationOptions.

This is currently used to set the limits for the background evaluation, although it also creates the infrastructure for setting more things.

Depends on #1973 as they both touch the same code.

@github-actions github-actions bot temporarily deployed to pull request June 21, 2024 12:26 Inactive
@thufschmitt
Copy link
Contributor Author

One thing that's missing from this is an end-user documentation. But I'm not sure where/how to write it

@github-actions github-actions bot temporarily deployed to pull request June 21, 2024 12:30 Inactive
Copy link
Member

@yannham yannham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Leaving the approval to Joe.

lsp/nls/src/config.rs Outdated Show resolved Hide resolved
lsp/nls/src/config.rs Outdated Show resolved Hide resolved
lsp/nls/tests/main.rs Outdated Show resolved Hide resolved
@yannham yannham requested a review from jneem June 21, 2024 12:45
@github-actions github-actions bot temporarily deployed to pull request June 21, 2024 12:53 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 21, 2024 12:58 Inactive
@github-actions github-actions bot temporarily deployed to pull request June 21, 2024 13:07 Inactive
Copy link

dpulls bot commented Jun 21, 2024

🎉 All dependencies have been resolved !

@yannham
Copy link
Member

yannham commented Jun 28, 2024

@thufschmitt I'm not sure how to handle the conflict here

Théophane Hufschmitt and others added 5 commits July 2, 2024 14:04
Take into account the configuration sent by the client through
[`InitializeParams.initializationOptions`](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initializeParams).

This is currently used to set the limits for the background evaluation,
although it also creates the infrastructure for setting more things.
Replace it by the derived one (thanks clippy)
Co-Authored-By: Yann Hamdaoui <[email protected]>
`#[serde(default)]` applied to a whole struct is enough for it to do the
right thing with the `Default` trait. Makes the module significantly
nicer to read.
@jneem jneem enabled auto-merge July 2, 2024 19:05
@github-actions github-actions bot temporarily deployed to pull request July 2, 2024 19:07 Inactive
@jneem jneem added this pull request to the merge queue Jul 2, 2024
Merged via the queue into master with commit 32a4b67 Jul 2, 2024
5 checks passed
@jneem jneem deleted the lsp-config branch July 2, 2024 19:29
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.

3 participants