Skip to content

Add watcher for pip installs - #1420

Merged
Eduardo Villalpando Mello (edvilme) merged 3 commits into
mainfrom
watch-pip-installs
Apr 2, 2026
Merged

Eduardo Villalpando Mello (edvilme) merged 3 commits into
mainfrom
watch-pip-installs

Conversation

@edvilme

Copy link
Copy Markdown
Contributor

Fixes #548

This pull request enhances the Python environment management by improving how changes to virtual environments and installed packages are detected and handled. The main focus is on ensuring that updates to the environment and package lists are automatically and efficiently refreshed when relevant files are created or deleted.

Improvements to environment and package monitoring:

  • Renamed the watcher for activate files to activationWatcher for clarity and consistency.
  • Added a new packageWatcher that monitors METADATA files within site-packages/*.dist-info directories to detect package installations and uninstallations, triggering a debounced refresh of the package list for all Python projects.
  • Introduced packageDebouncedRefresh, which efficiently refreshes package lists across all environments when relevant changes are detected, and logs errors if package refresh fails.

@edvilme
Eduardo Villalpando Mello (edvilme) merged commit 3829315 into main Apr 2, 2026
122 of 124 checks passed
@edvilme
Eduardo Villalpando Mello (edvilme) deleted the watch-pip-installs branch April 2, 2026 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

automatically refresh package list on change

2 participants