38ee845b05
While moving completion resolve to the event system in #9668 we introduced what is essentially a "DOS attack" on slow LSPs. Completion resolve requests were made in the render loop and debounced with a timeout. Once the timeout expired the resolve request was made. The problem is the next frame would immediately request a new completion resolve request (and mark the old one as obsolete but because LSP has no notion of cancelation the server would still process it). So we were in essence sending one completion request to the server every 150ms and only stopped if the server managed to respond before we rendered a new frame. This caused overload on slower machines/with slower LS. In this PR I revamped the resolve handler so that a request is only ever resolved once. Both by checking if a request is already in-flight and by marking failed resolve requests as resolved. |
7 months ago | |
---|---|---|
.cargo | 10 months ago | |
.github | 7 months ago | |
book | 7 months ago | |
contrib | 8 months ago | |
docs | 12 months ago | |
helix-core | 7 months ago | |
helix-dap | 8 months ago | |
helix-event | 9 months ago | |
helix-loader | 8 months ago | |
helix-lsp | 7 months ago | |
helix-parsec | 12 months ago | |
helix-stdx | 7 months ago | |
helix-term | 7 months ago | |
helix-tui | 7 months ago | |
helix-vcs | 7 months ago | |
helix-view | 7 months ago | |
runtime | 7 months ago | |
xtask | 7 months ago | |
.envrc | 12 months ago | |
.gitattributes | 2 years ago | |
.gitignore | 2 years ago | |
CHANGELOG.md | 8 months ago | |
Cargo.lock | 7 months ago | |
Cargo.toml | 7 months ago | |
LICENSE | 4 years ago | |
README.md | 11 months ago | |
base16_theme.toml | 7 months ago | |
default.nix | 2 years ago | |
flake.lock | 9 months ago | |
flake.nix | 12 months ago | |
grammars.nix | 10 months ago | |
languages.toml | 7 months ago | |
logo.svg | 11 months ago | |
logo_dark.svg | 11 months ago | |
logo_light.svg | 11 months ago | |
rust-toolchain.toml | 12 months ago | |
rustfmt.toml | 3 years ago | |
screenshot.png | 3 years ago | |
shell.nix | 2 years ago | |
theme.toml | 7 months ago |
README.md
A Kakoune / Neovim inspired editor, written in Rust.
The editing model is very heavily based on Kakoune; during development I found myself agreeing with most of Kakoune's design decisions.
For more information, see the website or documentation.
All shortcuts/keymaps can be found in the documentation on the website.
Features
- Vim-like modal editing
- Multiple selections
- Built-in language server support
- Smart, incremental syntax highlighting and code editing via tree-sitter
It's a terminal-based editor first, but I'd like to explore a custom renderer (similar to Emacs) in wgpu or skulpin.
Note: Only certain languages have indentation definitions at the moment. Check
runtime/queries/<lang>/
for indents.scm
.
Installation
Contributing
Contributing guidelines can be found here.
Getting help
Your question might already be answered on the FAQ.
Discuss the project on the community Matrix Space (make sure to join #helix-editor:matrix.org
if you're on a client that doesn't support Matrix Spaces yet).
Credits
Thanks to @jakenvac for designing the logo!