Skip to content

Commit

Permalink
Fix bug: server object does not have a view object
Browse files Browse the repository at this point in the history
  • Loading branch information
rwols committed Dec 21, 2017
1 parent f525dcd commit b5fb901
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,9 @@ def _run_configure_with_new_settings(cls):

@classmethod
def _codemodel_handler(cls, server):
cls.on_activated(server.view)
view = server.window.active_view()
if view:
cls.on_activated(view)

@classmethod
def on_activated(cls, view):
Expand Down

0 comments on commit b5fb901

Please sign in to comment.