Add opt-in Rust semantic navigation #4

Merged
exler merged 4 commits from feat/semantic-navigation into main 2026-11-24 20:51:59 +01:00
Collaborator

Summary

Open unknown projects in Restricted Mode. Editing remains available, but project Git and rust-analyzer are disabled until their directories are trusted. Trust this folder only, or its parent and descendants, and manage or revoke saved rules from the status bar. Trusted Cargo projects start an installed rust-analyzer automatically. This is not a sandbox; already running Git commands may finish after revocation.

Use Go to Declaration and Find References from the Rust identifier context menu. F12 still goes to definition; Shift+F12 finds references.

Verification

97 local tests passed with cargo test --locked. Native Xvfb captures use a disposable Rust fixture and a real rust-analyzer for reference results.

Screenshots

Restricted Mode: Git disabled

Trusted parent: Git enabled

Manage trusted folders

Rust editor context menu

References from rust-analyzer

## Summary Open unknown projects in Restricted Mode. Editing remains available, but project Git and rust-analyzer are disabled until their directories are trusted. Trust this folder only, or its parent and descendants, and manage or revoke saved rules from the status bar. Trusted Cargo projects start an installed rust-analyzer automatically. This is not a sandbox; already running Git commands may finish after revocation. Use Go to Declaration and Find References from the Rust identifier context menu. F12 still goes to definition; Shift+F12 finds references. ## Verification 97 local tests passed with `cargo test --locked`. Native Xvfb captures use a disposable Rust fixture and a real rust-analyzer for reference results. ## Screenshots ![Restricted Mode: Git disabled](https://git.marut.network/attachments/bffdad21-e818-4c56-a325-a10d3e6c5aaf) ![Trusted parent: Git enabled](https://git.marut.network/attachments/b5e2ec31-0e75-4707-b2d4-63e3e5b25233) ![Manage trusted folders](https://git.marut.network/attachments/3c938c5c-bd3d-43c2-8229-3edbbfba83a2) ![Rust editor context menu](https://git.marut.network/attachments/92a0aabc-016c-4430-b744-459237b8dc97) ![References from rust-analyzer](https://git.marut.network/attachments/10199912-9976-4a29-8346-a4e69d204899)
Bound language-server lifecycle and navigation requests
All checks were successful
Verify and release / verify (push) Successful in 2m5s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m5s
Verify and release / build (pull_request) Has been skipped
eeec13d580
Add project trust and Rust context navigation
Some checks failed
Verify and release / verify (push) Failing after 2m10s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Failing after 37s
Verify and release / build (pull_request) Has been skipped
02e46c51f4
Make trust write-failure test independent of permissions
All checks were successful
Verify and release / verify (push) Successful in 2m12s
Verify and release / build (push) Has been skipped
Verify and release / verify (pull_request) Successful in 2m11s
Verify and release / build (pull_request) Has been skipped
6f131f0181
exler merged commit 37c67fa128 into main 2026-11-24 20:51:59 +01:00
exler deleted branch feat/semantic-navigation 2026-11-24 20:51:59 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
exler/suns!4
No description provided.