From fdee8408831a994cf4788f9d2d8156fd8a7d89c8 Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 21 Nov 2024 18:48:27 +0200 Subject: [PATCH 1/2] Scanned through all the commands in lsp code_actions and these two were the only ones missing, added and tested. --- src/lsp/commands/lsp-commands.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lsp/commands/lsp-commands.ts b/src/lsp/commands/lsp-commands.ts index 411825b2d..6a46bc4fb 100644 --- a/src/lsp/commands/lsp-commands.ts +++ b/src/lsp/commands/lsp-commands.ts @@ -190,6 +190,8 @@ export function registerLspCommands(clients: defs.LspClientStore) { { command: 'move-coll-entry-up', category: 'clojureLsp.refactor' }, { command: 'move-form', category: 'clojureLsp.refactor' }, { command: 'promote-fn', category: 'clojureLsp.refactor' }, + { command: 'replace-refer-all-with-alias', category: 'clojureLsp.refactor' }, + { command: 'replace-refer-all-with-refer', category: 'clojureLsp.refactor' }, { command: 'resolve-macro-as', category: 'clojureLsp.refactor' }, { command: 'restructure-keys', category: 'clojureLsp.refactor' }, { command: 'sort-clauses', category: 'clojureLsp.refactor' }, From 99727560cf3ef46e20db20990b8fb83b9acc64ef Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 21 Nov 2024 19:20:37 +0200 Subject: [PATCH 2/2] Add to changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c130ab3fa..a9ed77e20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ Changes to Calva. ## [Unreleased] - +- Fix: [Added 'replace-refer-all-with-alias' & 'replace-refer-all-with-refer' actions to calva.](https://github.com/BetterThanTomorrow/calva/issues/2667) - Fix: [Error responses wait for stacktrace before printing to repl output](https://github.com/BetterThanTomorrow/calva/issues/2355) ## [2.0.399] - 2023-11-20