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

Improve LSP workspace/applyEdit by keeping the editor from switching to normal mode when loading a Document #11176

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

FlorianNAdam
Copy link
Contributor

When an existing Document is opened with Editor::open(path, Action::Load), this causes Editor::switch to be called.
This in turn resets the mode of the editor to normal mode, even if the loaded Document is not even in the current buffer.
To my knowledge this is only an issue in combination with the LSP workspace/applyEdit functionality.
Language servers that heavily utilize applyEdit make using helix nearly impossible, as typing and selecting is constantly interrupted by unexpected mode changes.

@archseer archseer merged commit 6345b78 into helix-editor:master Jul 15, 2024
6 checks passed
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