Skip to content

Commit dbfa72c

Browse files
authored
Wait for Package Control to re-enable installed packages (#305)
Package Control disables packages while installing them and re-enables them afterwards. The helper killed Sublime Text as soon as the packages and libraries were installed, which could leave them in ignored_packages, so that the tests started without them.
1 parent e12fa5b commit dbfa72c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎actions/setup/install_package_control_helper.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def check_packages():
7474
manager = package_control.package_manager.PackageManager()
7575
settings = sublime.load_settings("Package Control.sublime-settings")
7676
missing_packages = set(settings.get("installed_packages", [])) - manager.list_packages()
77+
# Takes the lock that PC holds while re-enabling packages, so that
78+
# `ignored_packages` is saved too once a package is no longer listed.
79+
missing_packages |= package_control.package_disabler.PackageDisabler.in_process_packages()
7780
if not missing_packages:
7881
check_libraries()
7982
return

0 commit comments

Comments
 (0)