:clojure-lsp: Released https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.04.13-12.47.33 version:
β’ Bump lsp4j
from 0.11.0 -> 0.12.0
β’ Add common snippets on completion π Check all 19 available snippets https://clojure-lsp.github.io/clojure-lsp/features/#snippets
β’ Add support for custom snippets via :additional-snippets
config π. Check https://clojure-lsp.github.io/clojure-lsp/features/#snippets for more information. - Fixes https://github.com/clojure-lsp/clojure-lsp/issues/403 c/c @brandon.ringe
Yay, snippets. That's much appreciated. Thank you.
π That βinline symbolβ is equivalent to eval & replace, right?
Sorry, what inline symbol
?
The action listed in the link you posted: https://clojure-lsp.github.io/clojure-lsp/features/#snippets (not sure if this is new, though π )
oh, the inline symbol is a code action from other releases indeed, anyway I don't know what eval & replace does π
It means evaluating something and replacing it with the result of the evaluation (`cider-eval-last-sexp-and-replace` does that, for example)
oh, got it, no inline symbol is not that, it'll replace all ocurrence of that variable with the value it represents
like:
(let [a 1
b (+ 1 2)]
b)
if I inline b
:
(let [a 1]
(+ 1 2))
the same for def
s
Got it. So yeah, it actually does more things than eval and replace. :nice:
clojure-lsp has no interaction with REPLs so there is no way to know the result of an sexpr by evaluating π
Ah, yeah, that will only work if the value is known, that makes sense
So yeah, different things