MountainEnvironment

Struct MountainEnvironment 

Source
pub struct MountainEnvironment {
    pub ApplicationHandle: AppHandle<Wry>,
    pub ApplicationState: Arc<ApplicationState>,
    pub AirClient: Option<AirServiceClient<Channel>>,
}
Expand description

The concrete Environment for the Mountain application.

Fields§

§ApplicationHandle: AppHandle<Wry>§ApplicationState: Arc<ApplicationState>§AirClient: Option<AirServiceClient<Channel>>

Optional Air client for cloud-based services. When provided, providers like SecretProvider and UpdateService can delegate to Air.

Implementations§

Source§

impl MountainEnvironment

Source

pub fn Create( ApplicationHandle: AppHandle<Wry>, ApplicationState: Arc<ApplicationState>, ) -> Self

Creates a new MountainEnvironment instance.

Source

pub fn CreateWithAir( ApplicationHandle: AppHandle<Wry>, ApplicationState: Arc<ApplicationState>, AirClient: Option<AirServiceClient<Channel>>, ) -> Self

Creates a new MountainEnvironment instance with an optional Air client. When AirClient is provided, providers can delegate to Air for cloud-based services.

Source

pub fn SetAirClient(&mut self, AirClient: Option<AirServiceClient<Channel>>)

Updates the Air client for this environment. This allows dynamically switching between Air and local services.

Source

pub async fn IsAirAvailable(&self) -> bool

Returns whether Air is available and ready.

Source

async fn ScanExtensionDirectory( &self, path: &PathBuf, ) -> Result<Vec<Value>, CommonError>

Scans a directory for extensions and returns their package.json data

Source§

impl MountainEnvironment

Source

async fn RunProxiedTests( &self, SideCarIdentifier: &str, RunIdentifier: &str, TestRunRequest: Value, ) -> Result<(), CommonError>

Runs tests via a proxied sidecar test controller.

Source

async fn UpdateRunStatus( &self, RunIdentifier: &str, Status: TestRunStatus, ) -> Result<(), CommonError>

Updates the status of a test run and notifies the frontend.

Source

async fn StoreTestResults( &self, RunIdentifier: &str, Results: Vec<TestResult>, ) -> Result<(), CommonError>

Stores test results for a test run.

Source

async fn CalculateRunStatus(&self, RunIdentifier: &str) -> TestRunStatus

Calculates the final status of a test run based on its results.

Trait Implementations§

Source§

impl Clone for MountainEnvironment

Source§

fn clone(&self) -> MountainEnvironment

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CommandExecutor for MountainEnvironment

Source§

fn ExecuteCommand<'life0, 'async_trait>( &'life0 self, CommandIdentifier: String, Argument: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Executes a registered command by dispatching it to the appropriate handler.

Source§

fn RegisterCommand<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, CommandIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a command contributed by a sidecar process.

Source§

fn UnregisterCommand<'life0, 'async_trait>( &'life0 self, _SideCarIdentifier: String, CommandIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered command.

Source§

fn GetAllCommands<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets a list of all currently registered command IDs.

Source§

impl ConfigurationInspector for MountainEnvironment

Source§

fn InspectConfigurationValue<'life0, 'async_trait>( &'life0 self, Key: String, Overrides: ConfigurationOverridesDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<InspectResultDataDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Inspects a configuration key to get its value from all relevant scopes. Read more
Source§

impl ConfigurationProvider for MountainEnvironment

Source§

fn GetConfigurationValue<'life0, 'async_trait>( &'life0 self, Section: Option<String>, Overrides: ConfigurationOverridesDTO, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a configuration value for a given section or key, applying specified overrides. Read more
Source§

fn UpdateConfigurationValue<'life0, 'async_trait>( &'life0 self, Key: String, Value: Value, Target: ConfigurationTarget, Overrides: ConfigurationOverridesDTO, ScopeToLanguage: Option<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates a configuration value at a specific key and target scope. Read more
Source§

impl CustomEditorProvider for MountainEnvironment

Source§

fn RegisterCustomEditorProvider<'life0, 'async_trait>( &'life0 self, ViewType: String, _Options: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new custom editor provider from an extension. Read more
Source§

fn UnregisterCustomEditorProvider<'life0, 'async_trait>( &'life0 self, ViewType: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered custom editor provider. Read more
Source§

fn OnSaveCustomDocument<'life0, 'async_trait>( &'life0 self, ViewType: String, ResourceURI: Url, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A notification sent from the extension host (Cocoon) to the main host (Mountain) when a custom document is saved by the user in the UI. Read more
Source§

fn ResolveCustomEditor<'life0, 'async_trait>( &'life0 self, ViewType: String, ResourceURI: Url, WebviewPanelHandle: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

A request sent from the main host (Mountain) to the extension host (Cocoon) to resolve the content for a custom editor. Read more
Source§

impl DebugService for MountainEnvironment

Source§

fn RegisterDebugConfigurationProvider<'life0, 'async_trait>( &'life0 self, DebugType: String, ProviderHandle: u32, SideCarIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a provider for resolving debug configurations from an extension. Read more
Source§

fn RegisterDebugAdapterDescriptorFactory<'life0, 'async_trait>( &'life0 self, DebugType: String, FactoryHandle: u32, SideCarIdentifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a factory for creating debug adapter descriptors from an extension. Read more
Source§

fn StartDebugging<'life0, 'async_trait>( &'life0 self, _FolderURI: Option<Url>, Configuration: Value, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Starts a new debugging session based on a launch configuration. Read more
Source§

fn SendCommand<'life0, 'async_trait>( &'life0 self, SessionID: String, Command: String, Arguments: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a command to a running debug session. This corresponds to the Debug Adapter Protocol (DAP). Read more
Source§

impl DiagnosticManager for MountainEnvironment

Source§

fn SetDiagnostics<'life0, 'async_trait>( &'life0 self, Owner: String, EntriesDTOValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets or updates diagnostics for multiple resources from a specific owner. Empty marker arrays are treated as clearing diagnostics for that URI.

Source§

fn ClearDiagnostics<'life0, 'async_trait>( &'life0 self, Owner: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears all diagnostics from a specific owner.

Source§

fn GetAllDiagnostics<'life0, 'async_trait>( &'life0 self, ResourceURIFilterOption: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves all diagnostics, optionally filtered by a resource URI. Returns diagnostics aggregated from all owners for the specified resource(s).

Source§

impl DocumentProvider for MountainEnvironment

Source§

fn OpenDocument<'life0, 'async_trait>( &'life0 self, URIComponentsDTO: Value, LanguageIdentifier: Option<String>, Content: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Url, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Opens an existing document from a URI or creates a new untitled document with initial content. Read more
Source§

fn SaveDocument<'life0, 'async_trait>( &'life0 self, URI: Url, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves the document at the given URI to disk.
Source§

fn SaveDocumentAs<'life0, 'async_trait>( &'life0 self, OriginalURI: Url, NewTargetURI: Option<Url>, ) -> Pin<Box<dyn Future<Output = Result<Option<Url>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves the document currently identified by OriginalURI to a new location. If NewTargetURI is None, the user should be prompted to select a location.
Source§

fn SaveAllDocuments<'life0, 'async_trait>( &'life0 self, IncludeUntitled: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<bool>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Saves all currently “dirty” (modified) documents. Read more
Source§

fn ApplyDocumentChanges<'life0, 'async_trait>( &'life0 self, URI: Url, NewVersionIdentifier: i64, ChangesDTOCollection: Value, _IsDirtyAfterChange: bool, _IsUndoing: bool, _IsRedoing: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Applies a collection of content changes to the document at the given URI. This is the primary method for handling edits from the extension host. Read more
Source§

impl ExtensionManagementService for MountainEnvironment

Source§

fn ScanForExtensions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Scans the predefined extension directories, parses the package.json for each found extension, and populates the internal state with the results. Read more
Source§

fn GetExtensions<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the metadata for all successfully scanned extensions. Read more
Source§

fn GetExtension<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the metadata for a single extension, identified by its ID (e.g., “vscode.typescript-language-features”). Read more
Source§

impl FileSystemReader for MountainEnvironment

Source§

fn ReadFile<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to read_operations module

Source§

fn StatFile<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<FileSystemStatDTO, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to read_operations module

Source§

fn ReadDirectory<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<Vec<(String, FileTypeDTO)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to read_operations module

Source§

impl FileSystemWriter for MountainEnvironment

Source§

fn WriteFile<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, content: Vec<u8>, create: bool, overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to write_operations module

Source§

fn CreateDirectory<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, recursive: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to write_operations module

Source§

fn Delete<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, recursive: bool, use_trash: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to write_operations module

Source§

fn Rename<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, source: &'life1 PathBuf, target: &'life2 PathBuf, overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Delegates to write_operations module

Source§

fn Copy<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, source: &'life1 PathBuf, target: &'life2 PathBuf, overwrite: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Delegates to write_operations module

Source§

fn CreateFile<'life0, 'life1, 'async_trait>( &'life0 self, path: &'life1 PathBuf, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delegates to write_operations module

Source§

impl IPCProvider for MountainEnvironment

Source§

fn SendNotificationToSideCar<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, Method: String, Parameters: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a fire-and-forget notification to a specified sidecar.

Source§

fn SendRequestToSideCar<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, Method: String, Parameters: Value, TimeoutMilliseconds: u64, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a request to a specified sidecar and awaits a response.

Source§

impl KeybindingProvider for MountainEnvironment

Source§

fn GetResolvedKeybinding<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves and retrieves the complete list of active keybinding rules. Read more
Source§

impl LanguageFeatureProviderRegistry for MountainEnvironment

Source§

fn RegisterProvider<'life0, 'async_trait>( &'life0 self, SideCarIdentifier: String, ProviderType: ProviderType, SelectorDTO: Value, ExtensionIdentifierDTO: Value, OptionsDTO: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<u32, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new language feature provider. Read more
Source§

fn UnregisterProvider<'life0, 'async_trait>( &'life0 self, Handle: u32, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unregisters a previously registered provider. Read more
Source§

fn ProvideCodeActions<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, RangeOrSelectionDTO: Value, ContextDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideCodeLenses<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideCompletions<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ContextDTO: CompletionContextDTO, CancellationTokenValue: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Option<CompletionListDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDefinition<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<LocationDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentFormattingEdits<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, OptionsDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<TextEditDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentHighlights<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideDocumentRangeFormattingEdits<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, RangeDTO: Value, OptionsDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<TextEditDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideHover<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<HoverResultDTO>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn ProvideReferences<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ContextDTO: Value, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<LocationDTO>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn PrepareRename<'life0, 'async_trait>( &'life0 self, DocumentURI: Url, PositionDTO: PositionDTO, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

impl OutputChannelManager for MountainEnvironment

Source§

fn RegisterChannel<'life0, 'async_trait>( &'life0 self, name: String, language_identifier: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new output channel with the host. Read more
Source§

fn Append<'life0, 'async_trait>( &'life0 self, channel_identifier: String, value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Appends a string value to the specified output channel. Read more
Source§

fn Replace<'life0, 'async_trait>( &'life0 self, channel_identifier: String, value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Replaces the entire content of the specified output channel with a new value. Read more
Source§

fn Clear<'life0, 'async_trait>( &'life0 self, channel_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clears all content from the specified output channel.
Source§

fn Reveal<'life0, 'async_trait>( &'life0 self, channel_identifier: String, preserve_focus: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reveals (opens and focuses) the specified output channel in the UI. Read more
Source§

fn Close<'life0, 'async_trait>( &'life0 self, channel_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Closes the view of the specified output channel in the UI, but does not dispose of it. The channel can be revealed again later.
Source§

fn Dispose<'life0, 'async_trait>( &'life0 self, channel_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of the specified output channel, removing it and its content permanently.
Source§

impl Requires<dyn CommandExecutor> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn CommandExecutor>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ConfigurationInspector> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ConfigurationInspector>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ConfigurationProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ConfigurationProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn CustomEditorProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn CustomEditorProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DebugService> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DebugService>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DiagnosticManager> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DiagnosticManager>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn DocumentProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn DocumentProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn ExtensionManagementService> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn ExtensionManagementService>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn FileSystemReader> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn FileSystemReader>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn FileSystemWriter> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn FileSystemWriter>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn IPCProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn IPCProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn KeybindingProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn KeybindingProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn LanguageFeatureProviderRegistry> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn LanguageFeatureProviderRegistry>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn OutputChannelManager> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn OutputChannelManager>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SearchProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SearchProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SecretProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SecretProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SourceControlManagementProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SourceControlManagementProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn StatusBarProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn StatusBarProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn StorageProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn StorageProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn SynchronizationProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn SynchronizationProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TerminalProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TerminalProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TestController> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TestController>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn TreeViewProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn TreeViewProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn UserInterfaceProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn UserInterfaceProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WebviewProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WebviewProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WorkspaceEditApplier> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WorkspaceEditApplier>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl Requires<dyn WorkspaceProvider> for MountainEnvironment

Source§

fn Require(&self) -> Arc<dyn WorkspaceProvider>

Returns the required capability from the environment, wrapped in an Arc for safe, shared ownership.
Source§

impl SearchProvider for MountainEnvironment

Source§

fn TextSearch<'life0, 'async_trait>( &'life0 self, QueryValue: Value, _OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Performs a text search across all workspace folders. Read more
Source§

impl SecretProvider for MountainEnvironment

Source§

fn GetSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves a secret by reading from the OS keychain. If Air is available and healthy, delegates to Air service. Falls back to local keyring if Air is unavailable.

Source§

fn StoreSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, Value: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stores a secret by writing to the OS keychain. If Air is available and healthy, delegates to Air service. Falls back to local keyring if Air is unavailable.

Source§

fn DeleteSecret<'life0, 'async_trait>( &'life0 self, ExtensionIdentifier: String, Key: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Deletes a secret by removing it from the OS keychain. If Air is available and healthy, delegates to Air service. Falls back to local keyring if Air is unavailable.

Source§

impl SourceControlManagementProvider for MountainEnvironment

Source§

fn CreateSourceControl<'life0, 'async_trait>( &'life0 self, ProviderDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<u32, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new SourceControlManagement provider in the host. Read more
Source§

fn DisposeSourceControl<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of an SourceControlManagement provider, removing it and its groups from the UI. Read more
Source§

fn UpdateSourceControl<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, UpdateDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the core properties of an SourceControlManagement provider. Read more
Source§

fn UpdateSourceControlGroup<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, GroupDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the properties of an SourceControlManagement resource group (e.g., “Changes”). Read more
Source§

fn RegisterInputBox<'life0, 'async_trait>( &'life0 self, ProviderHandle: u32, InputBoxDataValue: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers or updates the SourceControlManagement input box for a provider. Read more
Source§

impl StatusBarProvider for MountainEnvironment

Source§

fn SetStatusBarEntry<'life0, 'async_trait>( &'life0 self, entry: StatusBarEntryDTO, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new status bar entry or updates an existing one.

Source§

fn DisposeStatusBarEntry<'life0, 'async_trait>( &'life0 self, entry_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes a status bar item from the UI.

Source§

fn SetStatusBarMessage<'life0, 'async_trait>( &'life0 self, message_identifier: String, text: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a temporary message in the status bar.

Source§

fn DisposeStatusBarMessage<'life0, 'async_trait>( &'life0 self, message_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of a temporary status bar message.

Source§

fn ProvideTooltip<'life0, 'async_trait>( &'life0 self, entry_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Resolves a dynamic tooltip by making a reverse call to the extension host.

Source§

impl StorageProvider for MountainEnvironment

Source§

fn GetStorageValue<'life0, 'life1, 'async_trait>( &'life0 self, IsGlobalScope: bool, Key: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Option<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Retrieves a value from either global or workspace storage. Includes defensive validation to prevent invalid keys and invalid JSON.

Source§

fn UpdateStorageValue<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, Key: String, ValueToSet: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates or deletes a value in either global or workspace storage. Includes comprehensive validation for key length, value size, and JSON validity.

Source§

fn GetAllStorage<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the entire storage map for a given scope.

Source§

fn SetAllStorage<'life0, 'async_trait>( &'life0 self, IsGlobalScope: bool, FullState: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Overwrites the entire storage map for a given scope and persists it.

Source§

impl SynchronizationProvider for MountainEnvironment

Source§

fn PushUserData<'life0, 'async_trait>( &'life0 self, _UserData: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Pushes the current local user data state to the remote sync service. Read more
Source§

fn PullUserData<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Pulls the latest user data state from the remote sync service. Read more
Source§

impl TerminalProvider for MountainEnvironment

Source§

fn CreateTerminal<'life0, 'async_trait>( &'life0 self, OptionsValue: Value, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new terminal instance, spawns a PTY, and manages its I/O.

Source§

fn SendTextToTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, Text: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sends a string of text as input to a specific terminal instance’s underlying pseudo-terminal process. Read more
Source§

fn DisposeTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes of a specific terminal instance. This involves terminating the underlying shell process and cleaning up any associated resources. Read more
Source§

fn ShowTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, PreserveFocus: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a terminal in the UI, optionally giving it focus. Read more
Source§

fn HideTerminal<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Hides the terminal panel if the specified terminal is active. Read more
Source§

fn GetTerminalProcessId<'life0, 'async_trait>( &'life0 self, TerminalId: u64, ) -> Pin<Box<dyn Future<Output = Result<Option<u32>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the process ID (PID) of the underlying shell process for a terminal. Read more
Source§

impl TestController for MountainEnvironment

Source§

fn RegisterTestController<'life0, 'async_trait>( &'life0 self, ControllerId: String, Label: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Registers a new test controller from an extension (e.g., Cocoon).

This method creates a TestControllerState entry and notifies the frontend about the available test controller.

Source§

fn RunTests<'life0, 'async_trait>( &'life0 self, ControllerIdentifier: String, TestRunRequest: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Runs tests based on the test run request.

This implementation supports both native (Rust) and proxied (extension) test controllers, with proper test discovery, execution, and result reporting.

Source§

impl TreeViewProvider for MountainEnvironment

Source§

fn RegisterTreeDataProvider<'life0, 'async_trait>( &'life0 self, view_identifier: String, options: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Informs the host that a new tree data provider has been registered by an extension. The host should prepare to display a tree view with the given ID and options. Read more
Source§

fn UnregisterTreeDataProvider<'life0, 'async_trait>( &'life0 self, view_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Informs the host that a tree data provider has been disposed of. Read more
Source§

fn GetChildren<'life0, 'async_trait>( &'life0 self, view_identifier: String, element_handle: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Vec<Value>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the children for a given tree element. Read more
Source§

fn GetTreeItem<'life0, 'async_trait>( &'life0 self, view_identifier: String, element_handle: String, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves the full TreeItem DTO for a given element handle. This is used by the host to get the display properties of an item. Read more
Source§

fn SetTreeViewMessage<'life0, 'async_trait>( &'life0 self, view_identifier: String, message: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets a message to be displayed in the tree view’s empty state. Read more
Source§

fn SetTreeViewTitle<'life0, 'async_trait>( &'life0 self, view_identifier: String, title: Option<String>, description: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the title and description of the tree view container. Read more
Source§

fn SetTreeViewBadge<'life0, 'async_trait>( &'life0 self, view_identifier: String, badge: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets a badge (e.g., a number) on the tree view’s container icon. Read more
Source§

fn OnTreeNodeExpanded<'life0, 'async_trait>( &'life0 self, view_identifier: String, element_handle: String, is_expanded: bool, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles tree node expansion/collapse events. Called when a user expands or collapses a node in the tree view. Read more
Source§

fn OnTreeSelectionChanged<'life0, 'async_trait>( &'life0 self, view_identifier: String, selected_handles: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Handles tree selection changes. Called when the user selects or deselects items in the tree view. Read more
Source§

fn PersistTreeViewState<'life0, 'async_trait>( &'life0 self, view_identifier: String, ) -> Pin<Box<dyn Future<Output = Result<Value, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Persists the current state of a tree view. Saves the expansion and selection state for later restoration. Read more
Source§

fn RestoreTreeViewState<'life0, 'async_trait>( &'life0 self, view_identifier: String, state_value: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Restores a previously persisted tree view state. Read more
Source§

fn RevealTreeItem<'life0, 'async_trait>( &'life0 self, view_identifier: String, item_handle: String, options: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Asks the host UI to reveal and/or expand a specific item in a tree view. Read more
Source§

fn RefreshTreeView<'life0, 'async_trait>( &'life0 self, view_identifier: String, items_to_refresh: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Notifies the host that some or all of the data in a tree view has changed and needs to be re-fetched and re-rendered. Read more
Source§

impl UserInterfaceProvider for MountainEnvironment

Source§

fn ShowMessage<'life0, 'async_trait>( &'life0 self, Severity: MessageSeverity, Message: String, Options: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a message to the user with a given severity and optional action buttons.

Source§

fn ShowOpenDialog<'life0, 'async_trait>( &'life0 self, Options: Option<OpenDialogOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<PathBuf>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a dialog for opening files or folders using the tauri-plugin-dialog.

Source§

fn ShowSaveDialog<'life0, 'async_trait>( &'life0 self, Options: Option<SaveDialogOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a dialog for saving a file using the tauri-plugin-dialog.

Source§

fn ShowQuickPick<'life0, 'async_trait>( &'life0 self, Items: Vec<QuickPickItemDTO>, Options: Option<QuickPickOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<Vec<String>>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows a quick pick list to the user.

Source§

fn ShowInputBox<'life0, 'async_trait>( &'life0 self, Options: Option<InputBoxOptionsDTO>, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows an input box to solicit a string input from the user.

Source§

impl WebviewProvider for MountainEnvironment

Source§

fn CreateWebviewPanel<'life0, 'async_trait>( &'life0 self, extension_data_value: Value, view_type: String, title: String, _show_options_value: Value, panel_options_value: Value, content_options_value: Value, ) -> Pin<Box<dyn Future<Output = Result<String, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new Webview panel with proper security isolation.

Source§

fn DisposeWebviewPanel<'life0, 'async_trait>( &'life0 self, handle: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Disposes a Webview panel and cleans up all associated resources.

Source§

fn RevealWebviewPanel<'life0, 'async_trait>( &'life0 self, handle: String, _show_options_value: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reveals (shows and focuses) a Webview panel.

Source§

fn SetWebviewOptions<'life0, 'async_trait>( &'life0 self, handle: String, options_value: Value, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets Webview options (title, icon, etc.).

Source§

fn SetWebviewHTML<'life0, 'async_trait>( &'life0 self, handle: String, html: String, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Sets the HTML content of a Webview.

Source§

fn PostMessageToWebview<'life0, 'async_trait>( &'life0 self, handle: String, message: Value, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Posts a message to a Webview with proper error handling.

Source§

impl WorkspaceEditApplier for MountainEnvironment

Source§

fn ApplyWorkspaceEdit<'life0, 'async_trait>( &'life0 self, Edit: WorkspaceEditDTO, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Applies a workspace edit to the workspace.

Source§

impl WorkspaceProvider for MountainEnvironment

Source§

fn GetWorkspaceFoldersInfo<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<(Url, String, usize)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves information about all currently open workspace folders.

Source§

fn GetWorkspaceFolderInfo<'life0, 'async_trait>( &'life0 self, URIToMatch: Url, ) -> Pin<Box<dyn Future<Output = Result<Option<(Url, String, usize)>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Retrieves information for the specific workspace folder that contains a given URI.

Source§

fn GetWorkspaceName<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<String>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the name of the current workspace.

Source§

fn GetWorkspaceConfigurationPath<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Option<PathBuf>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets the path to the workspace configuration file (.code-workspace).

Source§

fn IsWorkspaceTrusted<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Checks if the current workspace is trusted.

Source§

fn RequestWorkspaceTrust<'life0, 'async_trait>( &'life0 self, _Options: Option<Value>, ) -> Pin<Box<dyn Future<Output = Result<bool, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Requests workspace trust from the user.

Source§

fn FindFilesInWorkspace<'life0, 'async_trait>( &'life0 self, _query: Value, __arg2: Option<Value>, __arg3: Option<usize>, __arg4: bool, __arg5: bool, ) -> Pin<Box<dyn Future<Output = Result<Vec<Url>, CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Finds files in the workspace matching the specified query.

Source§

fn OpenFile<'life0, 'async_trait>( &'life0 self, path: PathBuf, ) -> Pin<Box<dyn Future<Output = Result<(), CommonError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Opens a file in the workspace.

Source§

impl Environment for MountainEnvironment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoRequest<T> for T

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in [Layered].
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> AutoreleaseSafe for T
where T: ?Sized,