Skip to main content

Module provider

Module provider 

Source

Structs§

WorkspacePathsDefaults
Adapter that maps an existing WorkspacePaths implementation into a ConfigDefaultsProvider.

Traits§

ConfigDefaultsProvider
Provides access to filesystem and syntax defaults used by the configuration loader.

Functions§

current_config_defaults
Returns the currently installed provider as an Arc.
get_config_dir
Resolves the canonical configuration directory through the shared path policy. The legacy directory remains a read-only compatibility candidate; callers writing configuration must use the canonical path.
get_data_dir
Returns the canonical VT Code data directory. The legacy root is only a migration/read-compatibility source.
install_config_defaults_provider
Installs a new ConfigDefaultsProvider, returning the previous provider.
reset_to_default_config_defaults
Restores the built-in defaults provider.
with_config_defaults
Executes the provided function with the currently installed provider.
with_config_defaults_provider_for_test