IsWorkspaceTrusted

Function IsWorkspaceTrusted 

Source
pub fn IsWorkspaceTrusted() -> ActionEffect<Arc<dyn WorkspaceProvider>, CommonError, bool>
Expand description

Creates an effect that, when executed, will check if the current workspace is considered trusted by the user.

Workspace Trust is a security feature that restricts certain operations (like automatic task execution) in untrusted folders.

It uses the WorkspaceProvider capability from the environment.

ยงReturns

An ActionEffect that resolves with a bool indicating the trust state.