( ideClient: ConnectedMCPServer, )
| 1268 | * This triggers IDE-specific actions like closing all diff tabs. |
| 1269 | */ |
| 1270 | export async function closeOpenDiffs( |
| 1271 | ideClient: ConnectedMCPServer, |
| 1272 | ): Promise<void> { |
| 1273 | try { |
| 1274 | await callIdeRpc('closeAllDiffTabs', {}, ideClient) |
| 1275 | } catch (_) { |
| 1276 | // Silently ignore errors when closing diff tabs |
| 1277 | // This prevents exceptions if the IDE doesn't support this operation |
| 1278 | } |
| 1279 | } |
| 1280 | |
| 1281 | /** |
| 1282 | * Initializes IDE detection and extension installation, then calls the provided callback |