fix(fs): use correct arg name for unwatch (#857)

* fix(fs): use correct arg name for unwatch

* fmt
pull/854/head
Amr Bashir 2 years ago committed by GitHub
parent 85f8419682
commit 2e2fc8de69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,5 @@
---
"fs-js": "patch"
---
Fix `invalid args id for command unwatch` error when trying to unwatch a previously watched file or directory.

@ -1135,8 +1135,8 @@ type DebouncedEvent =
*/ */
type UnwatchFn = () => void; type UnwatchFn = () => void;
async function unwatch(id: number): Promise<void> { async function unwatch(rid: number): Promise<void> {
await invoke("plugin:fs|unwatch", { id }); await invoke("plugin:fs|unwatch", { rid });
} }
/** /**

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save