Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove metals-model-refresh Handler #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions lsp-metals.el
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,6 @@ WORKSPACE is the workspace the notification was received from."
(`"metals-diagnostics-focus" #'lsp-metals--diagnostics-focus)
(`"metals-goto-location" #'lsp-metals--goto-location)
(`"metals-echo-command" #'lsp-metals--echo-command)
(`"metals-model-refresh" #'lsp-metals--model-refresh)
(`"metals-show-stacktrace" #'lsp-metals--show-stacktrace)
(`"reset-choice" #'lsp-metals--reset-choice)
(c (ignore (lsp-warn "Unknown metals client command: %s" c))))))
Expand Down Expand Up @@ -778,16 +777,6 @@ PARAMS are the action params."
:request "launch"
:noDebug no-debug))))

(defun lsp-metals--model-refresh (workspace)
"Handle `metals-model-refresh' notification refreshing lenses.
WORKSPACE is the workspace the notification was received from."
(->> workspace
(lsp--workspace-buffers)
(mapc (lambda (buffer)
(with-current-buffer buffer
(when (bound-and-true-p lsp-lens-mode)
(lsp-lens--schedule-refresh t)))))))

(defun lsp-metals--status-string-keymap (workspace command?)
"Keymap for `metals/status' notification.
WORKSPACE is the workspace we received notification from.
Expand Down Expand Up @@ -843,7 +832,6 @@ WORKSPACE is the workspace we received notification from."
:notification-handlers (ht ("metals/executeClientCommand" #'lsp-metals--execute-client-command)
("metals/publishDecorations" #'lsp-metals--publish-decorations)
("metals/treeViewDidChange" #'lsp-metals-treeview--did-change)
("metals-model-refresh" #'lsp-metals--model-refresh)
("metals/status" #'lsp-metals--status-string))
:request-handlers (ht ("metals/quickPick" #'lsp-metals--quick-pick)
("metals/inputBox" #'lsp-metals--input-box))
Expand Down