Skip to content

Commit

Permalink
Auto-show target select popup once the project is configured
Browse files Browse the repository at this point in the history
Signed-off-by: Raoul Wols <[email protected]>
  • Loading branch information
rwols committed Dec 21, 2017
1 parent b5fb901 commit 9240d81
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions commands/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,13 @@ def _codemodel_handler(cls, server):
view = server.window.active_view()
if view:
cls.on_activated(view)
status = view.get_status("cmake_active_target")
if not status:
server.window.run_command(
"set_build_system",
{"file":
"$packages/CMakeBuilder/CMakeBuilder.sublime-build"})
server.window.run_command("cmake_set_target")

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

0 comments on commit 9240d81

Please sign in to comment.