-
-
Notifications
You must be signed in to change notification settings - Fork 890
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: lsp--find-workspaces-for workspace/executeCommand respects the t…
…arget command Calling (lsp--find-workspaces-for '(:method "workspace/executeCommand" :params (:command "arbitrary-command"))) would return *any* workspace that had the :executeCommandProvider capability registerd. This would result in a given command being forwarded for **all active workspaces**. Some servers (such as ruff) would raise a KeyError for unknown commands -- causing the minibuffer to, sometimes, show an error. This change introduces a new :check-message callback that can be used in lsp-method-requirements -- this callback receives the workspace and the message to be sent. Ths entry for workspace/executeCommand has been updated to check if the target workspace can execute the required command.
- Loading branch information
Showing
1 changed file
with
23 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters