(
&self,
home: &Path,
profile_root: &Path,
)
| 194 | } |
| 195 | |
| 196 | fn export_managed_skills( |
| 197 | &self, |
| 198 | home: &Path, |
| 199 | profile_root: &Path, |
| 200 | ) -> Result<Vec<crate::automation::skill_targets::SkillInstallSummary>> { |
| 201 | if !self.has_tracedecay(home) { |
| 202 | return Ok(Vec::new()); |
| 203 | } |
| 204 | let prompt_paths = [ |
| 205 | super::vscode_data_dir(home).join("User/prompts/copilot-instructions.md"), |
| 206 | super::vscode_insiders_data_dir(home).join("User/prompts/copilot-instructions.md"), |
| 207 | super::copilot_cli_dir(home).join("copilot-instructions.md"), |
| 208 | ]; |
| 209 | prompt_paths |
| 210 | .iter() |
| 211 | .filter(|path| path.exists()) |
| 212 | .map(|path| { |
| 213 | crate::automation::skill_targets::install_managed_skills( |
| 214 | profile_root, |
| 215 | crate::automation::skill_targets::SkillInstallTarget::Agents, |
| 216 | path, |
| 217 | ) |
| 218 | }) |
| 219 | .collect() |
| 220 | } |
| 221 | |
| 222 | fn export_managed_skills_local( |
| 223 | &self, |
nothing calls this directly
no test coverage detected