IsPathAllowedForAccess

Function IsPathAllowedForAccess 

Source
pub fn IsPathAllowedForAccess(
    ApplicationState: &ApplicationState,
    PathToCheck: &Path,
) -> Result<(), CommonError>
Expand description

A critical security helper that checks if a given filesystem path is allowed for access.

In this architecture, this means the path must be a descendant of one of the currently open and trusted workspace folders. This prevents extensions from performing arbitrary filesystem operations outside the user’s intended scope.