Skip to content

Commit

Permalink
Print error window/logMessage to lsp-bridge buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
manateelazycat committed May 5, 2024
1 parent 471012f commit 7f8428e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/lspserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,11 +646,10 @@ def handle_dart_publish_closing_labels(self, message):
get_from_path_dict(self.files, filepath).record_dart_closing_lables(message["params"]["labels"])

def handle_log_message(self, message):
# Notice user if got error message from lsp server.
if "method" in message and message["method"] == "window/logMessage":
try:
if "error" in message["params"]["message"].lower():
message_emacs("{} ({}): {}".format(self.project_name, self.server_info["name"], message["params"]["message"]))
print("{} ({}): {}".format(self.project_name, self.server_info["name"], message["params"]["message"]))
except:
pass

Expand Down

0 comments on commit 7f8428e

Please sign in to comment.