refactor: watch whole project
This commit is contained in:
parent
cd52e64d3a
commit
fdd551e8f6
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| {
|
while (iter.next()) |key| {
|
||||||
(try buffers.addOne(self.allocator)).* = key.*;
|
(try buffers.addOne(self.allocator)).* = key.*;
|
||||||
}
|
}
|
||||||
|
const project = tp.env.get().str("project");
|
||||||
var watcher_: watcher.Watcher = try .init(
|
var watcher_: watcher.Watcher = try .init(
|
||||||
self.allocator,
|
self.allocator,
|
||||||
&debouncer,
|
&debouncer,
|
||||||
&.{}, // dirs_to_watch.items,
|
&.{project},
|
||||||
);
|
);
|
||||||
|
|
||||||
try watcher_.start();
|
try watcher_.start();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue