diff --git a/powerline/lib/watcher/uv.py b/powerline/lib/watcher/uv.py index 26e9dbfe..88b64366 100644 --- a/powerline/lib/watcher/uv.py +++ b/powerline/lib/watcher/uv.py @@ -87,6 +87,10 @@ class UvWatcher(object): return watch.close(partial(self._stopped_watching, path)) + def is_watching(self, path): + with self.lock: + return path in self.watches + def __del__(self): try: lock = self.lock