refactor: watch whole project
This commit is contained in:
parent
327df84e77
commit
576a263bb6
1 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue