Skip to content

Commit

Permalink
Create "Package Control Messages" in background
Browse files Browse the repository at this point in the history
Don't disturb workflow by not focusing package upgrade messages view.
  • Loading branch information
deathaxe committed Aug 2, 2023
1 parent 4a26302 commit 7360e1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package_control/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -2243,8 +2243,15 @@ def read_message(message_path):
window = sublime.active_window()
if not window:
window = sublime.windows()[0]

active_view = window.active_view()

view = window.new_file()
window.set_view_index(view, 0, 0)

if active_view:
window.focus_view(active_view)

view.set_name('Package Control Messages')
view.set_scratch(True)
settings = view.settings()
Expand Down

0 comments on commit 7360e1e

Please sign in to comment.