refactor: watch whole project

This commit is contained in:
CJ van den Berg 2025-12-04 14:33:06 +01:00
parent 327df84e77
commit 576a263bb6
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9

View file

@ -251,11 +251,11 @@ pub fn watch_all_buffers(self: *Self) watcher.Error!void {
while (iter.next()) |key| {
(try buffers.addOne(self.allocator)).* = key.*;
}
const project = tp.env.get().str("project");
var watcher_: watcher.Watcher = try .init(
self.allocator,
&debouncer,
&.{}, // dirs_to_watch.items,
&.{project},
);
try watcher_.start();