From 88146be5ab42e513a53466cb13d14cb220d3d056 Mon Sep 17 00:00:00 2001 From: JoaoOneillCortes Date: Mon, 21 Sep 2020 16:32:58 +0100 Subject: [PATCH] Asks for the name of the method, If none found. No suggestions. --- dap-java.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dap-java.el b/dap-java.el index a2ad0a8..9d24e74 100644 --- a/dap-java.el +++ b/dap-java.el @@ -121,7 +121,8 @@ If the port is taken, DAP will try the next port." (lsp-region-text selection-range))))) children?)))) (cl-first)) - (user-error "No method at point")))) + (let ((method (read-string "no method at point. Name:"))) + (concat (dap-java-test-class) "#" method))))) (defun dap-java--select-main-class () "Select main class from the current workspace."