Skip to main content

vtcode_config/constants/
env.rs

1/// Agent Client Protocol specific environment keys
2pub mod acp {
3    #[derive(Debug, Clone, Copy)]
4    pub enum AgentClientProtocolEnvKey {
5        Enabled,
6        ZedEnabled,
7        ZedToolsReadFileEnabled,
8        ZedToolsListFilesEnabled,
9        ZedWorkspaceTrust,
10    }
11
12    impl AgentClientProtocolEnvKey {
13        pub fn as_str(self) -> &'static str {
14            match self {
15                Self::Enabled => "VT_ACP_ENABLED",
16                Self::ZedEnabled => "VT_ACP_ZED_ENABLED",
17                Self::ZedToolsReadFileEnabled => "VT_ACP_ZED_TOOLS_READ_FILE_ENABLED",
18                Self::ZedToolsListFilesEnabled => "VT_ACP_ZED_TOOLS_LIST_FILES_ENABLED",
19                Self::ZedWorkspaceTrust => "VT_ACP_ZED_WORKSPACE_TRUST",
20            }
21        }
22    }
23}