Skip to content

Commit

Permalink
workaround the type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rchl committed Dec 8, 2021
1 parent f9d23e7 commit 99d2f5d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugin/tooling.py
Expand Up @@ -290,10 +290,11 @@ class LspTroubleshootServerCommand(sublime_plugin.WindowCommand, TransportCallba

def run(self) -> None:
window = self.window
active_view = window.active_view()
if not active_view:
view = window.active_view()
if not view:
sublime.message_dialog('Troubleshooting must be run with a file opened')
return
active_view = view
configs = windows.lookup(window).get_config_manager().get_configs()
config_names = [config.name for config in configs]
if config_names:
Expand Down

0 comments on commit 99d2f5d

Please sign in to comment.