From b5139c959336758a93d0e55458e6ca938d9fd16a Mon Sep 17 00:00:00 2001 From: Evgeny Kurnevsky Date: Tue, 12 Nov 2024 12:42:51 +0100 Subject: [PATCH] Revert "Fix doctor client command when html is not passed." This reverts commit fa4072cbe7a7061cdb218b9a3619979f7facba0e. It was fixed in metals. --- lsp-metals.el | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lsp-metals.el b/lsp-metals.el index 1c8f4ed..9f45653 100644 --- a/lsp-metals.el +++ b/lsp-metals.el @@ -581,14 +581,12 @@ for more information on the metals \"files-decode\" command." "Generate doctor buffer name for the WORKSPACE." (format "*Metals Doctor: %s*" (process-id (lsp--workspace-cmd-proc workspace)))) -(defun lsp-metals--doctor-run (workspace &optional html?) +(defun lsp-metals--doctor-run (workspace html) "Focus on a window displaying troubleshooting help from the Metals doctor. HTML is the help contents. WORKSPACE is the workspace the client command was received from." - (if (not html?) - (lsp-send-execute-command "doctor-run" ()) - (pop-to-buffer (lsp-metals--generate-doctor-buffer-name workspace)) - (lsp-metals--render-html html?))) + (pop-to-buffer (lsp-metals--generate-doctor-buffer-name workspace)) + (lsp-metals--render-html html)) (defun lsp-metals--doctor-reload (workspace html) "Reload the HTML contents of an open Doctor window, if any.