helix-mods/helix-term/src
Michael Davis 606b957172
Replace uses of lsp::Location with a custom Location type
The lsp location type has the lsp's URI type and a range. We can replace
that with a custom type private to the lsp commands module that uses the
core URI type instead.

We can't entirely replace the type with a new Location type in core.
That type might look like:

    pub struct Location {
        uri: crate::Uri,
        range: crate::Range,
    }

But we can't convert every `lsp::Location` to this type because for
definitions, references and diagnostics language servers send documents
which we haven't opened yet, so we don't have the information to convert
an `lsp::Range` (line+col) to a `helix_core::Range` (char indexing).

This cleans up the picker definitions in this file so that they can all
use helpers like `jump_to_location` and `location_to_file_location` for
the picker preview. It also removes the only use of the deprecated
`PathOrId::from_path_buf` function, allowing us to drop the owned
variant of that type in the child commit.
2024-09-03 09:48:32 -04:00
..
commands Replace uses of lsp::Location with a custom Location type 2024-09-03 09:48:32 -04:00
handlers only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
keymap feat(command): select_all_children 2024-04-09 10:33:15 -04:00
ui fix(picker): no longer trim search pattern (#11406) 2024-08-10 00:26:09 +09:00
application.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00
args.rs Fallback to filename for +arg (#9333) 2024-01-14 15:11:18 +01:00
commands.rs Parse and execute macro mappable commands 2024-08-10 00:39:47 +09:00
compositor.rs add redraw command (#6949) 2023-09-08 10:46:36 +09:00
config.rs feat: smart_tab 2023-08-01 09:41:42 -05:00
events.rs only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
handlers.rs only show inline diagnostics after a delay 2024-07-15 16:36:29 +02:00
health.rs Add glob file type support (#8006) 2024-02-11 18:24:20 +01:00
job.rs Add hook/event system 2024-01-23 11:20:19 +09:00
keymap.rs Disallow macro keybindings within command sequences 2024-08-10 00:39:47 +09:00
lib.rs Ignore .svn version control files (#10536) 2024-04-21 12:00:30 +09:00
main.rs chore: clean up clippy lints (#11377) 2024-08-01 06:39:46 +09:00