mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-09-20 21:20:42 +02:00
fix(fs): use correct arg name for unwatch (#857)
* fix(fs): use correct arg name for unwatch * fmt
This commit is contained in:
@@ -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
Reference in New Issue
Block a user