This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-01-27
Channels
- # announcements (24)
- # babashka (26)
- # beginners (8)
- # calva (8)
- # clojure (78)
- # clojure-europe (1)
- # clojure-norway (22)
- # clojurescript (14)
- # datascript (5)
- # datomic (8)
- # fulcro (22)
- # helix (9)
- # humbleui (11)
- # malli (4)
- # off-topic (28)
- # pedestal (5)
- # reitit (10)
- # shadow-cljs (2)
- # tools-build (8)
- # tools-deps (9)
Are all the Clojure-LSP commands covered in Calva? I see many in the command menu, but not all..? https://clojure-lsp.io/features/#clojure-lsp-extra-commands
IIRC those commands are manually coded in Calva, so I guess someone need to update that, otherwise you will only access some of them via LSP code actions
Issue welcome. Here’s where we do this https://github.com/BetterThanTomorrow/calva/blob/dev/src/lsp/commands/lsp-commands.ts#L151-251 It has untapped dynamic potential. If clojure-lsp has a way to discover the functions we could do it that way instead and not have to keep the list in sync.
Those are available in the initialize request, but some of them expect custom args, I think makes sense to provide them in server-info request
It’s not as many as I might have thought.
Based on manual diff…
The calva code has these names I dont see in clojure-lsp reference:
• move-coll-entry-down
• move-coll-entry-up
• sort-map
• supress-diagnostic
The clojure-lsp reference has these names I dont see in Calva code:
• replace-refer-all-with-refer
• replace-refer-all-with-alias
So If I understand right. For lsp refactor commands I don’t see in vscode command menu, but are represented in the Calva code, they are likely mapped to default vscode hotkeys?
Ex: extract-to-def
They probably are accessed via code actions(the 💡 icon), so all code actions are commands in the way but not every command could be a code action( clojure server-info for example)
Sort map is available via code actions and command, but I think it was renamed to sort clauses
Ok thanks for context