Skip to content

Commit

Permalink
shorten status message to remove LSP
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenesvk committed Nov 27, 2024
1 parent 5c0a673 commit d0e8f16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugin/core/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def start_async(self, config: ClientConfig, initiating_view: sublime.View) -> No
"Re-enable by running \"LSP: Enable Language Server In Project\" from the Command Palette.",
"\n\n--- Error: ---\n{1}"
)).format(config.name, str(e))
status = f"LSP: Failed to start {config.name}… See console"
status = f"Failed to start {config.name}… See console"
exception_log(f"Unable to start subprocess for {config.name}", e)
if isinstance(e, CalledProcessError):
print("Server output:\n{}".format(e.output.decode('utf-8', 'replace')))
Expand Down
4 changes: 2 additions & 2 deletions plugin/core/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def enable_in_project(window: sublime.Window, config_name: str) -> None:
window.set_project_data(project_data)
else:
message = f"Can't enable {config_name} in the current workspace. Ensure that the project is saved first."
status = f"LSP: Can't enable {config_name} in this workspace… See console"
status = f"Can't enable {config_name} in this workspace… See console"
notify(window, message, status)


Expand All @@ -162,5 +162,5 @@ def disable_in_project(window: sublime.Window, config_name: str) -> None:
window.set_project_data(project_data)
else:
message = f"Can't disable {config_name} in the current workspace. Ensure that the project is saved first."
status = f"LSP: Can't enable {config_name} in this workspace… See console"
status = f"Can't enable {config_name} in this workspace… See console"
notify(window, message, status)
2 changes: 1 addition & 1 deletion plugin/execute_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def handle_error_async(self, error: Error, command_name: str) -> None:
:param command_name: The name of the command that was executed.
"""
message = f"command {command_name} failed. Reason: {str(error)}"
status = f"LSP: {command_name} failed… See console"
status = f"{command_name} failed… See console"
notify(self.view.window(), message, status)

def _expand_variables(self, command_args: list[Any]) -> list[Any]:
Expand Down

0 comments on commit d0e8f16

Please sign in to comment.