aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_watchdirs.lua
Commit message (Collapse)AuthorAge
* refactor(watch): extract watchdirs into a classLewis Russell4 days
Problem: watchdirs() keeps its state in large nested callbacks in _watch.lua, which makes its directory tracking logic harder to change. Solution: Move the backend into its own module and store its state in a WatchDirs instance. Split setup, event handling and cleanup into methods. Extend the existing test to cover cancellation while a directory stat is pending. AI-assisted