Skip to content

Commit

Permalink
Fix line too long
Browse files Browse the repository at this point in the history
  • Loading branch information
jwortmann committed Oct 25, 2024
1 parent 2044599 commit 7b877df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,8 @@ def on_close(self) -> None:

def on_query_context(self, key: str, operator: int, operand: Any, match_all: bool) -> bool | None:
# You can filter key bindings by the precense of a provider,
if key == "lsp.session_with_capability" and operator == sublime.QueryOperator.EQUAL and isinstance(operand, str):
if key == "lsp.session_with_capability" and operator == sublime.QueryOperator.EQUAL and \
isinstance(operand, str):
capabilities = [s.strip() for s in operand.split("|")]
for capability in capabilities:
if any(self.sessions_async(capability)):
Expand Down

0 comments on commit 7b877df

Please sign in to comment.