Fork me on GitHub
#lsp
<
2021-04-13
>
ericdallo13:04:51

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

clojure-lsp 16
clojure-spin 7
🎉 2
❤️ 2
apt13:04:02

🆒 That ‘inline symbol’ is equivalent to eval & replace, right?

ericdallo13:04:09

Sorry, what inline symbol?

apt13:04:03

The action listed in the link you posted: https://clojure-lsp.github.io/clojure-lsp/features/#snippets (not sure if this is new, though 😅)

ericdallo13:04:59

oh, the inline symbol is a code action from other releases indeed, anyway I don't know what eval & replace does 😅

apt13:04:31

It means evaluating something and replacing it with the result of the evaluation (`cider-eval-last-sexp-and-replace` does that, for example)

ericdallo13:04:19

oh, got it, no inline symbol is not that, it'll replace all ocurrence of that variable with the value it represents

ericdallo13:04:59

like:

(let [a 1
      b (+ 1 2)]
 b)
if I inline b :
(let [a 1]
  (+ 1 2))

ericdallo13:04:07

the same for def s

apt13:04:42

Got it. So yeah, it actually does more things than eval and replace. nice

👍 2
ericdallo13:04:54

clojure-lsp has no interaction with REPLs so there is no way to know the result of an sexpr by evaluating 🙂

apt13:04:29

Ah, yeah, that will only work if the value is known, that makes sense

apt13:04:34

So yeah, different things

👍 2
practicalli-johnny08:04:14

Yay, snippets. That's much appreciated. Thank you.

😄 3