(&self, ctx: &InstallContext)
| 99 | } |
| 100 | |
| 101 | fn uninstall(&self, ctx: &InstallContext) -> Result<()> { |
| 102 | let vscode_settings_path = super::vscode_data_dir(&ctx.home).join("User/settings.json"); |
| 103 | let cli_settings_path = super::copilot_cli_dir(&ctx.home).join("mcp-config.json"); |
| 104 | uninstall_vscode_mcp_server(&vscode_settings_path); |
| 105 | let insiders_settings_path = |
| 106 | super::vscode_insiders_data_dir(&ctx.home).join("User/settings.json"); |
| 107 | uninstall_vscode_mcp_server(&insiders_settings_path); |
| 108 | uninstall_cli_mcp_server(&cli_settings_path); |
| 109 | |
| 110 | let vscode_instructions = |
| 111 | super::vscode_data_dir(&ctx.home).join("User/prompts/copilot-instructions.md"); |
| 112 | super::remove_managed_skill_prompt_index( |
| 113 | &ctx.home, |
| 114 | &vscode_instructions, |
| 115 | crate::automation::skill_targets::SkillInstallTarget::Agents, |
| 116 | )?; |
| 117 | uninstall_prompt_rules(&vscode_instructions); |
| 118 | let insiders_instructions = |
| 119 | super::vscode_insiders_data_dir(&ctx.home).join("User/prompts/copilot-instructions.md"); |
| 120 | super::remove_managed_skill_prompt_index( |
| 121 | &ctx.home, |
| 122 | &insiders_instructions, |
| 123 | crate::automation::skill_targets::SkillInstallTarget::Agents, |
| 124 | )?; |
| 125 | uninstall_prompt_rules(&insiders_instructions); |
| 126 | let cli_instructions = super::copilot_cli_dir(&ctx.home).join("copilot-instructions.md"); |
| 127 | super::remove_managed_skill_prompt_index( |
| 128 | &ctx.home, |
| 129 | &cli_instructions, |
| 130 | crate::automation::skill_targets::SkillInstallTarget::Agents, |
| 131 | )?; |
| 132 | uninstall_prompt_rules(&cli_instructions); |
| 133 | |
| 134 | eprintln!(); |
| 135 | eprintln!("Uninstall complete. Tracedecay has been removed from GitHub Copilot."); |
| 136 | eprintln!( |
| 137 | "Restart VS Code and/or start a new Copilot CLI session for changes to take effect." |
| 138 | ); |
| 139 | Ok(()) |
| 140 | } |
| 141 | |
| 142 | fn healthcheck(&self, dc: &mut DoctorCounters, ctx: &HealthcheckContext) { |
| 143 | eprintln!("\n\x1b[1mGitHub Copilot integration\x1b[0m"); |
nothing calls this directly
no test coverage detected