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