Module Utility

Module Utility 

Source
Expand description

§Environment Utility

Contains shared helper functions used by the MountainEnvironment provider implementations for tasks like error mapping, path manipulation, and security checks.

Functions§

DetectLanguageIdentifierFromFilePath
A simple utility to detect a language identifier string from a file path’s extension.
GetURLFromURIComponentsDTO
Helper to get a Url from a serde_json::Value which is expected to be a UriComponents DTO from VS Code.
IsPathAllowedForAccess
A critical security helper that checks if a given filesystem path is allowed for access.
MapApplicationStateLockErrorToCommonError
Maps a PoisonError from a failed ApplicationState Mutex lock into a structured CommonError::StateLockPoisoned.