Fix #3731: fix dap-java keybinds
This commit is contained in:
parent
d9739a2d10
commit
ab3376869d
2 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
;;;###if (featurep! +lsp)
|
;;;###if (featurep! +lsp)
|
||||||
|
|
||||||
(use-package! lsp-java
|
(use-package! lsp-java
|
||||||
|
:commands dap-java-run-test-class dap-java-debug-test-class
|
||||||
:after lsp-clients
|
:after lsp-clients
|
||||||
:preface
|
:preface
|
||||||
(setq lsp-java-workspace-dir (concat doom-etc-dir "java-workspace"))
|
(setq lsp-java-workspace-dir (concat doom-etc-dir "java-workspace"))
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
"Runs test at point.
|
"Runs test at point.
|
||||||
If in a method, runs the test method, otherwise runs the entire test class."
|
If in a method, runs the test method, otherwise runs the entire test class."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(require 'lsp-java)
|
||||||
(condition-case nil
|
(condition-case nil
|
||||||
(dap-java-run-test-method)
|
(dap-java-run-test-method)
|
||||||
(user-error (dap-java-run-test-class))))
|
(user-error (dap-java-run-test-class))))
|
||||||
|
@ -15,6 +16,7 @@ If in a method, runs the test method, otherwise runs the entire test class."
|
||||||
"Runs test at point in a debugger.
|
"Runs test at point in a debugger.
|
||||||
If in a method, runs the test method, otherwise runs the entire test class."
|
If in a method, runs the test method, otherwise runs the entire test class."
|
||||||
(interactive)
|
(interactive)
|
||||||
|
(require 'lsp-java)
|
||||||
(condition-case nil
|
(condition-case nil
|
||||||
(call-interactively #'dap-java-debug-test-method)
|
(call-interactively #'dap-java-debug-test-method)
|
||||||
(user-error (call-interactively #'dap-java-debug-test-class))))
|
(user-error (call-interactively #'dap-java-debug-test-class))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue