diff --git a/plugins/fs/src/commands.rs b/plugins/fs/src/commands.rs index ceecac99..185e925f 100644 --- a/plugins/fs/src/commands.rs +++ b/plugins/fs/src/commands.rs @@ -343,6 +343,7 @@ pub async fn read( } async fn read_file_inner( + permission: &str, webview: Webview, global_scope: GlobalScope, command_scope: CommandScope, @@ -350,7 +351,7 @@ async fn read_file_inner( options: Option, ) -> CommandResult { let (mut file, path) = resolve_file( - "read-file", + permission, &webview, &global_scope, &command_scope,