Skip to content

lsp doesn't handle code action refactor.extract.* #6702

Closed
@sigmaSd

Description

@sigmaSd

helix can handle currently code action like refactor.extract (used by rust analyzer for example) but the spec says that kind in code action are a hierarchical list of identifiers separated by ., this is not handled by helix

example deno lsp which uses this https://github.com/denoland/deno/blob/015eb4ef9c99526486e372489dcc50feb7b39ea6/cli/lsp/refactor.rs#L23

log

2023-04-11T05:39:28.840 helix_term::commands::lsp [DEBUG] code action: CodeAction { title: "Extract to function in module scope", kind: Some(CodeActionKind("refactor.extract.function")), diagnostics: None, edit: None, command: None, is_preferred: Some(false), disabled: None, data: Some(Object {"actionName": String("function_scope_0"), "range": Object {"end": Object {"character": Number(0), "line": Number(2)}, "start": Object {"character": Number(0), "line": Number(0)}}, "refactorName": String("Extract Symbol"), "specifier": String("file:///home/mrcool/dev/deno/lab/tmp/oXf/a.ts")}) }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions