Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | prevent panic when receiving malformed LSP PublishDiagnostic (#2160) | Michael Davis | 2022-04-18 |
| | | | | | | | | | | | Instead of panicing we can discard the malformed diagnostic. This `.parse()` fails commonly when a non-conformant language server gives a diagnostic with a location that breaks the spec: { "character": 0, "line": -1 } can currently be returned by ElixirLS and the python LS. Other messages in this block are discarded but this one feels special enough to log. | ||
* | Send active diagnostics to LSP when requesting code actions. (#2005) | Robin Jadoul | 2022-04-17 |
| | | | | | | | | | | | * Send active diagnostics to LSP when requesting code actions. This allows for e.g. clangd to properly send the quickfix code actions corresponding to those diagnostics as options. The LSP spec v3.16.0 introduced an opaque `data` member that would allow the server to persist arbitrary data between the diagnostic and the code actions request, but this is not supported yet by this commit. * Reuse existing range_to_lsp_range functionality | ||
* | lsp: Implement support for workspace_folders (currently just one) | Blaž Hrastnik | 2022-04-01 |
| | | | | Refs #1898 | ||
* | Implement LSP `workspace/configuration` and ↵ | Triton171 | 2022-02-28 |
| | | | | | | | | | | | | | `workspace/didChangeConfiguration` (#1684) * Implement LSP `workspace/configuration` request * Implement LSP `workspace/didChangeConfiguration` notification. * Simplify retrieval of LSP configuration * Implement suggestions from PR discussion Co-authored-by: Triton171 <triton0171@gmail.com> | ||
* | Optimize lsp_pos_to_pos (#1423) | Kirawi | 2022-01-03 |
| | | | lines().count() is slow compared to len_lines() | ||
* | Detect workspace root using language markers (#1370) | Alexis Mousset | 2021-12-31 |
| | | | | | | | | | | | | | | | | * Detect workspace root using language markers * Avoid allocating root_markers * Update helix-core/src/lib.rs Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> * Update helix-core/src/lib.rs Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com> | ||
* | LSP code action commands (#1304) | Matouš Dzivjak | 2021-12-21 |
| | | | | | | | | | * feat(lsp): codeAction commands * Don't block on command call * Fix lifetime of command execution * Fix lint issues | ||
* | lsp: Don't panic if init fails | Blaž Hrastnik | 2021-12-03 |
| | | | | | | We correctly filter out the language server inside Document to ignore it if the capabilities are missing, so this way it'll simply ignore the errored out LSP rather than panicking. | ||
* | Allow `language.config` (in languages.toml) to be passed in as a toml object ↵ | Midnight Exigent | 2021-10-08 |
| | | | | | | | | | | | | | (#807) * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master | ||
* | log errors produced when trying to initialize the LSP (#746) | Kirawi | 2021-09-15 |
| | |||
* | lsp: Don't send notifications until initialize completes | Blaž Hrastnik | 2021-09-06 |
| | | | | Then send open events for all documents with the LSP attached. | ||
* | lsp: Outdated comment | Blaž Hrastnik | 2021-09-06 |
| | |||
* | lsp: Delay requests & notifications until initialization is complete | Blaž Hrastnik | 2021-09-06 |
| | |||
* | lsp: Refactor capabilities as an async OnceCell | Blaž Hrastnik | 2021-09-06 |
| | | | | First step in making LSP init asynchronous | ||
* | Added option to provide a custom config file to the lsp. (#460) | Cor Peters | 2021-07-18 |
| | | | | | | | | | | | | | | | | | * Added option to provide a custom config file to the lsp. * Simplified lsp loading routine with anyhow * Moved config to language.toml * Fixed test case * Cargo fmt * Revert now-useless changes * Renamed custom_config to config Co-authored-by: Cor <prive@corpeters.nl> | ||
* | Make formatting happen asynchronously. | Joe Neeman | 2021-06-30 |
| | |||
* | Address nightly clippy warnings | Blaž Hrastnik | 2021-06-27 |
| | |||
* | Add progress spinners to status line | wojciechkepka | 2021-06-21 |
| | |||
* | Handle language server shutdown with timeout | wojciechkepka | 2021-06-19 |
| | |||
* | Add unique id to each lsp client/server pair | wojciechkepka | 2021-06-18 |
| | |||
* | Add `MethodCall`, `ProgressStatus`, `LspProgressMap` | wojciechkepka | 2021-06-18 |
| | |||
* | add symbol picker (#230) | Robin | 2021-06-12 |
| | | | | | | | | | * add symbol picker use the lsp document_symbol request * fix errors from merging in master * add docs for symbol picker | ||
* | lsp: Check bounds when converting lsp positions (#204) | Wojciech Kępka | 2021-06-12 |
| | | | | | | | | | * lsp: Make position conversion funcs return `Option` * Add tests * Fixes * Revert pos_to_lsp_pos to panic | ||
* | lsp: Display LSP progress messages (#216) | Wojciech Kępka | 2021-06-11 |
| | |||
* | Derive debug without feature | Ivan Tham | 2021-06-10 |
| | | | | Note that this also removed those `finish_non_exhaustive()`. | ||
* | Implement Debug for data structure as a feature | notoria | 2021-06-10 |
| | |||
* | helix-lsp cleanup | Egor Karavaev | 2021-06-08 |
| | |||
* | Don't panic on LSP not starting | Egor Karavaev | 2021-06-08 |
| | |||
* | Remove select_all implementation | Egor Karavaev | 2021-06-04 |
| | |||
* | Add :fmt (formats the whole file). | Blaž Hrastnik | 2021-05-12 |
| | |||
* | Lint | Blaž Hrastnik | 2021-05-09 |
| | |||
* | Remove some of the panics, just log instead. | Blaž Hrastnik | 2021-05-08 |
| | |||
* | Work around the rest of the blocking issues. | Blaž Hrastnik | 2021-05-06 |
| | |||
* | Tokio migration. | Blaž Hrastnik | 2021-05-06 |
| | |||
* | Add window/showMessage / logMessage stubs so gopls fully starts. | Blaž Hrastnik | 2021-04-15 |
| | |||
* | lsp: support both utf-8 and utf-16 offsets. | Blaž Hrastnik | 2021-04-14 |
| | | | | | Still need to implement the clangd encoding negotiation, but it's a start. Should also manually override to utf8 for pyls. | ||
* | lsp: Gracefully fail if binary doesn't exist. | Blaž Hrastnik | 2021-04-07 |
| | |||
* | wip: Async async. Delay response handling with a callback. | Blaž Hrastnik | 2021-03-26 |
| | |||
* | Add the machinery to load syntax config from TOML. | Blaž Hrastnik | 2021-03-25 |
| | | | | It's embedded into the binary at build time for now, but it's progress. | ||
* | Pos conversions always operate on whole documents. | Blaž Hrastnik | 2021-03-18 |
| | |||
* | Don't publicly re-export once_cell in lsp. | Blaž Hrastnik | 2021-03-18 |
| | |||
* | Remove State from a few more signatures. | Blaž Hrastnik | 2021-03-18 |
| | |||
* | Make Transaction::change only rely on the rope. | Blaž Hrastnik | 2021-03-18 |
| | |||
* | ui: Render diagnostic errors in sideline. | Blaž Hrastnik | 2021-03-15 |
| | |||
* | Configure language servers via LanguageConfiguration. | Blaž Hrastnik | 2021-03-14 |
| | |||
* | commands: = as range formatting (via lsp) | Blaž Hrastnik | 2021-02-26 |
| | |||
* | treewide: &RopeSlice -> RopeSlice. It's Copy so no reason to pass by ref | Blaž Hrastnik | 2021-02-18 |
| | |||
* | Refactoring: move language_servers into Editor, proper load for doc. | Blaž Hrastnik | 2021-01-21 |
| | |||
* | Address clippy lints. | Blaž Hrastnik | 2021-01-08 |
| | |||
* | lsp: Fix pos_to_lsp_pos calculation. | Blaž Hrastnik | 2020-12-25 |
| |