Use paths::external_agents_dir (#41286)
We were not actually using `paths::agent_servers` and were manually constructing the path to the `external_agents` folder in a few places. Release Notes: - N/A
This commit is contained in:
@@ -370,12 +370,12 @@ pub fn debug_adapters_dir() -> &'static PathBuf {
|
||||
DEBUG_ADAPTERS_DIR.get_or_init(|| data_dir().join("debug_adapters"))
|
||||
}
|
||||
|
||||
/// Returns the path to the agent servers directory
|
||||
/// Returns the path to the external agents directory
|
||||
///
|
||||
/// This is where agent servers are downloaded to
|
||||
pub fn agent_servers_dir() -> &'static PathBuf {
|
||||
static AGENT_SERVERS_DIR: OnceLock<PathBuf> = OnceLock::new();
|
||||
AGENT_SERVERS_DIR.get_or_init(|| data_dir().join("agent_servers"))
|
||||
pub fn external_agents_dir() -> &'static PathBuf {
|
||||
static EXTERNAL_AGENTS_DIR: OnceLock<PathBuf> = OnceLock::new();
|
||||
EXTERNAL_AGENTS_DIR.get_or_init(|| data_dir().join("external_agents"))
|
||||
}
|
||||
|
||||
/// Returns the path to the Copilot directory.
|
||||
|
||||
Reference in New Issue
Block a user