Closed eduardolevygp closed 2 months ago
The ideal solution would be to solve this on clojure-lsp side, sending after the edits a window/showDocument
request to client to move the cursor to a specified position.
Fixed on 2.4.0 + clojure-lsp server update
Describe the bug When using
Raise sexpr
, the cursor position doesn't change, leaving it in a different place relative to the target expression after the operation executes, making it harder to do consecutive "raises".To Reproduce Steps to reproduce the behavior:
{:a {:b {:c :d}}}
{:a {:b |{:c :d}}}
- cursor on the pipe|
symbol)Raise sexpr
{:a {:c |:d}}
)Raise sexpr
is executed again, it raises only:d
instead of the map{:c :d}
Expected behavior Keep the cursor in the same position relative to the expression being "raised". In the previous example, I expected the cursor to be right before the map
{:c :d}
(|{:c :d}
) after the operation, so it can be raised again.Desktop (please complete the following information):
macOS 13.6.6
IntelliJ IDEA 2023.3.5 (Community Edition)
2.3.8