diff --git a/package.json b/package.json index 55340976e..13de6f7fb 100644 --- a/package.json +++ b/package.json @@ -1734,6 +1734,18 @@ "category": "clojure-lsp Refactor", "enablement": "editorLangId == clojure && clojureLsp:active" }, + { + "command": "clojureLsp.refactor.destructureKeys", + "title": "Destructure Keys", + "category": "clojure-lsp Refactor", + "enablement": "editorLangId == clojure && clojureLsp:active" + }, + { + "command": "clojureLsp.refactor.restructureKeys", + "title": "Restructure Keys", + "category": "clojure-lsp Refactor", + "enablement": "editorLangId == clojure && clojureLsp:active" + }, { "command": "clojureLsp.refactor.addMissingLibspec", "title": "Add Missing Require", diff --git a/src/lsp/main.ts b/src/lsp/main.ts index 56c499ecd..d24c39501 100644 --- a/src/lsp/main.ts +++ b/src/lsp/main.ts @@ -255,6 +255,13 @@ const clojureLspCommands: ClojureLspCommand[] = [ command: 'extract-function', extraParamFn: makePromptForInput('Function name'), }, + { + command: 'destructure-keys', + }, + { + command: 'restructure-keys', + extraParamFn: makePromptForInput('Bind to'), + }, ]; function sendCommandRequest(command: string, args: (number | string)[]): void {