Skip to content

Commit

Permalink
fix: ignore REPL views
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
  • Loading branch information
jfcherng committed Jul 10, 2024
1 parent 3d63e6e commit 0a32614
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ def required_node_version(cls) -> str:
"""
return ">=14"

@classmethod
def should_ignore(cls, view: sublime.View) -> bool:
# ignore REPL views (https://github.com/sublimelsp/LSP-pyright/issues/343)
if view.settings().get("repl"):
return True
return False

def on_settings_changed(self, settings: DottedDict) -> None:
super().on_settings_changed(settings)

Expand Down

0 comments on commit 0a32614

Please sign in to comment.