Skip to content

Commit

Permalink
refactor: tidy codes
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Cherng <[email protected]>
  • Loading branch information
jfcherng committed Jul 19, 2024
1 parent ca4b50f commit 97ad46d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ def required_node_version(cls) -> str:
@classmethod
def should_ignore(cls, view: sublime.View) -> bool:
return bool(
# ignore REPL views (https://github.com/sublimelsp/LSP-pyright/issues/343)
# SublimeREPL views
view.settings().get("repl")
# ignore Python-like syntax test files
or view.substr(sublime.Region(0, 20)).startswith("# SYNTAX TEST ")
# syntax test files
or os.path.basename(view.file_name() or "").startswith("syntax_test")
)

@classmethod
Expand Down

0 comments on commit 97ad46d

Please sign in to comment.