Skip to content

Commit b5139c9

Browse files
committed
Revert "Fix doctor client command when html is not passed."
This reverts commit fa4072c. It was fixed in metals.
1 parent 5caf501 commit b5139c9

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lsp-metals.el

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -581,14 +581,12 @@ for more information on the metals \"files-decode\" command."
581581
"Generate doctor buffer name for the WORKSPACE."
582582
(format "*Metals Doctor: %s*" (process-id (lsp--workspace-cmd-proc workspace))))
583583

584-
(defun lsp-metals--doctor-run (workspace &optional html?)
584+
(defun lsp-metals--doctor-run (workspace html)
585585
"Focus on a window displaying troubleshooting help from the Metals doctor.
586586
HTML is the help contents.
587587
WORKSPACE is the workspace the client command was received from."
588-
(if (not html?)
589-
(lsp-send-execute-command "doctor-run" ())
590-
(pop-to-buffer (lsp-metals--generate-doctor-buffer-name workspace))
591-
(lsp-metals--render-html html?)))
588+
(pop-to-buffer (lsp-metals--generate-doctor-buffer-name workspace))
589+
(lsp-metals--render-html html))
592590

593591
(defun lsp-metals--doctor-reload (workspace html)
594592
"Reload the HTML contents of an open Doctor window, if any.

0 commit comments

Comments
 (0)