Skip to content

Commit

Permalink
Revert "Fix doctor client command when html is not passed."
Browse files Browse the repository at this point in the history
This reverts commit fa4072c.

It was fixed in metals.
  • Loading branch information
kurnevsky committed Nov 12, 2024
1 parent 5caf501 commit b5139c9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lsp-metals.el
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b5139c9

Please sign in to comment.