InspectConfiguration

Function InspectConfiguration 

Source
pub fn InspectConfiguration(
    Key: String,
    OverridesValue: Value,
) -> ActionEffect<Arc<dyn ConfigurationInspector>, CommonError, Option<InspectResultDataDTO>>
Expand description

Creates an effect that, when executed, will inspect a configuration key to get its value from all relevant sources (e.g., default, user, workspace).

It uses the ConfigurationInspector capability from the environment to perform the operation.

§Parameters

  • Key: The dot-separated configuration key to inspect (e.g., “Editor.FontSize”).
  • OverridesValue: A serde_json::Value representing the ConfigurationOverridesDTO, which can specify a resource or language scope for the inspection.

§Returns

An ActionEffect that resolves with an Option<InspectResultDataDTO>, containing the detailed breakdown of the configuration value from all scopes.