Skip to content

Commit

Permalink
Notify user move cursor to next error/warning if current place haven'…
Browse files Browse the repository at this point in the history
…t code action.
  • Loading branch information
manateelazycat committed Jan 12, 2024
1 parent 46a9b2a commit 8743731
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/fileaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ def push_code_actions(self, actions, server_name, action_kind):
code_actions = self.get_code_actions()
if len(code_actions) > 0:
eval_in_emacs("lsp-bridge-code-action--fix", self.get_code_actions(), action_kind)
elif self.get_diagnostics_count() > 0:
message_emacs("Please move cursor to error or warning, then execute 'lsp-bridge-code-action' again.")
else:
message_emacs("Fantastic, your code looks great! No further actions needed!")

Expand Down

0 comments on commit 8743731

Please sign in to comment.