Skip to content

Commit

Permalink
Fix lsp_show_scope_name command not working if view was dragged to ne…
Browse files Browse the repository at this point in the history
…w window
  • Loading branch information
jwortmann authored and rwols committed Jan 2, 2022
1 parent f1e96dc commit 19a01aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/semantic_highlighting.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .core.registry import LspTextCommand
from .core.typing import List
from .core.typing import List, Optional
import sublime


Expand All @@ -21,6 +21,9 @@ class LspShowScopeNameCommand(LspTextCommand):

capability = 'semanticTokensProvider'

def is_enabled(self, event: Optional[dict] = None, point: Optional[int] = None) -> bool:
return True

def run(self, edit: sublime.Edit) -> None:
point = self.view.sel()[-1].b

Expand Down

0 comments on commit 19a01aa

Please sign in to comment.