Skip to content

Commit 078a835

Browse files
committed
Workspace trust: show warning that current file is untrusted
1 parent ddedf55 commit 078a835

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

helix-view/src/editor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1640,7 +1640,9 @@ impl Editor {
16401640
if let TrustStatus::Untrusted =
16411641
trust.query_workspace(&path.clone().unwrap_or(current_working_dir()))
16421642
{
1643-
// TODO: show an instruction on how to trust this workspace
1643+
self.set_warning(
1644+
"Current directory is not trusted; run `:workspace_trust` to enable all features",
1645+
);
16441646
return;
16451647
};
16461648

0 commit comments

Comments
 (0)