Use selection instead of just the cursor when fetching code actions

This commit is contained in:
Antonio Scandurra 2022-02-14 14:13:36 +01:00
parent 1eea2f3653
commit fadb94afb2
6 changed files with 88 additions and 63 deletions

View file

@ -123,7 +123,7 @@ pub struct Completion {
#[derive(Clone, Debug)]
pub struct CodeAction {
pub position: Anchor,
pub range: Range<Anchor>,
pub lsp_action: lsp::CodeAction,
}