Skip to content

Commit

Permalink
Fix ignored_packages setting getting changed at startup if default pa…
Browse files Browse the repository at this point in the history
…ckages have been extracted

If the default packages aren't in a `.sublime-package` file then on
startup the `"ignored_packages"` setting would always be set to `[]`.

Primarily this fixes our development environment where we don't use any
`.sublime-package` files, but presumably there are also people who've
extracted these folders (as unwise as that may be).
  • Loading branch information
Benjamin Schaaf committed Dec 5, 2023
1 parent 3780c37 commit 754195d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions package_control/package_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,7 @@ def list_default_packages(self):
"""

packages = set(list_sublime_package_files(sys_path.default_packages_path()))
packages |= set(list_sublime_package_dirs(sys_path.default_packages_path()))
packages -= {'User'}
return packages

Expand Down

0 comments on commit 754195d

Please sign in to comment.