lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
ericdallo 2021-04-13T13:17:51.061100Z

: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

7
3
❀️ 1
πŸŽ‰ 1
practicalli-john 2021-04-14T08:41:14.066400Z

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

πŸ˜„ 1
2021-04-13T13:32:02.061700Z

πŸ†’ That β€˜inline symbol’ is equivalent to eval & replace, right?

ericdallo 2021-04-13T13:40:09.062100Z

Sorry, what inline symbol?

2021-04-13T13:46:03.062300Z

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

ericdallo 2021-04-13T13:50:59.062600Z

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

2021-04-13T13:55:31.062800Z

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

ericdallo 2021-04-13T13:56:19.063100Z

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

ericdallo 2021-04-13T13:56:59.063300Z

like:

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

ericdallo 2021-04-13T13:57:07.063500Z

the same for def s

2021-04-13T13:57:42.063700Z

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

πŸ‘ 1
ericdallo 2021-04-13T13:57:54.063900Z

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

2021-04-13T13:58:29.064200Z

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

2021-04-13T13:58:34.064400Z

So yeah, different things

πŸ‘ 1