diff options
| author | João Távora | 2023-03-16 10:45:25 +0000 |
|---|---|---|
| committer | João Távora | 2023-03-16 11:39:12 +0000 |
| commit | 9d3fdf7e0d4c9355b2466aca51938291ea4e26c7 (patch) | |
| tree | 7b775976e47fa8e448456b5f53b85eaf1c22d3bb | |
| parent | e10144c1568e1c6571aac3b0185e53fa5c99945f (diff) | |
| download | emacs-9d3fdf7e0d4c9355b2466aca51938291ea4e26c7.tar.gz emacs-9d3fdf7e0d4c9355b2466aca51938291ea4e26c7.zip | |
Fix Eglot's command generation for code actions
The user command generated by eglot--code-action should always call
eglot-code-actions with a INTERACTIVE set to t.
Reported in https://github.com/joaotavora/eglot/issues/1132.
* lisp/progmodes/eglot.el (eglot--code-action): Pass INTERACTIVE=t to
eglot-code-action call.
| -rw-r--r-- | lisp/progmodes/eglot.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index 4448c4a01fc..5c61a444fd3 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el | |||
| @@ -3371,7 +3371,7 @@ at point. With prefix argument, prompt for ACTION-KIND." | |||
| 3371 | `(defun ,name (beg &optional end) | 3371 | `(defun ,name (beg &optional end) |
| 3372 | ,(format "Execute `%s' code actions between BEG and END." kind) | 3372 | ,(format "Execute `%s' code actions between BEG and END." kind) |
| 3373 | (interactive (eglot--region-bounds)) | 3373 | (interactive (eglot--region-bounds)) |
| 3374 | (eglot-code-actions beg end ,kind))) | 3374 | (eglot-code-actions beg end ,kind t))) |
| 3375 | 3375 | ||
| 3376 | (eglot--code-action eglot-code-action-organize-imports "source.organizeImports") | 3376 | (eglot--code-action eglot-code-action-organize-imports "source.organizeImports") |
| 3377 | (eglot--code-action eglot-code-action-extract "refactor.extract") | 3377 | (eglot--code-action eglot-code-action-extract "refactor.extract") |