Skip to content

Provide option to completely disable LSP - #4425

Merged
archseer merged 3 commits into
helix-editor:masterfrom
dead10ck:disable-lsp
Feb 2, 2023
Merged

Provide option to completely disable LSP#4425
archseer merged 3 commits into
helix-editor:masterfrom
dead10ck:disable-lsp

Conversation

@dead10ck

@dead10ck dead10ck commented Oct 23, 2022

Copy link
Copy Markdown
Member

I had had this code sitting around in a branch I'm working on already before #4391 became necessary in order to turn off LSP for the integration tests. It slows them down and is totally unnecessary until we figure out a good way to do integration tests with real language servers.

I'm making this PR as a proposed different way to approach this, where this is generalized into a user config option exposed to the user. I figure that while my motivation for this was reducing noise in the integration tests, this could conceivably be desirable by some users without having to e.g. compile out LSP integration with a feature flag.

Another benefit is that when we do get to integration tests around LSP, we won't need to manually specify a language config; we'll just need to set this one boolean config setting in the test invocation, which is a lot less tedious, and allows always testing the same default configs that ship to users.

With that said, I don't actually have any strong feelings about keeping this, I just thought it was worth proposing and seeing what everyone thinks since I had already done it. I'm perfectly content leaving it the way it is now.

@the-mikedavis the-mikedavis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think this looks good - I would prefer an option like this to the change in #4391 (removing LSP config by deleting the toml keys). I think this just needs a new line in the book for the new option:

### `[editor.lsp]` Section

@dead10ck

Copy link
Copy Markdown
Member Author

Done

@dead10ck dead10ck mentioned this pull request Oct 24, 2022
@dead10ck
dead10ck force-pushed the disable-lsp branch 2 times, most recently from 201eeb3 to 803a8cc Compare October 24, 2022 05:02
@kirawi kirawi added A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer. labels Oct 25, 2022
@dead10ck

Copy link
Copy Markdown
Member Author

@archseer any thoughts?

@dead10ck
dead10ck force-pushed the disable-lsp branch 2 times, most recently from c3570f5 to 1f11593 Compare November 21, 2022 16:42
@dead10ck
dead10ck force-pushed the disable-lsp branch 3 times, most recently from 54ed35d to 033d3e2 Compare December 5, 2022 16:16
@archseer
archseer merged commit a5233cf into helix-editor:master Feb 2, 2023
@dead10ck
dead10ck deleted the disable-lsp branch January 14, 2025 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-helix-term Area: Helix term improvements S-waiting-on-review Status: Awaiting review from a maintainer.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants