( ideClient: ConnectedMCPServer, )
| 1327 | * This triggers IDE-specific actions like closing all diff tabs. |
| 1328 | */ |
| 1329 | export async function closeOpenDiffs( |
| 1330 | ideClient: ConnectedMCPServer, |
| 1331 | ): Promise<void> { |
| 1332 | try { |
| 1333 | await callIdeRpc('closeAllDiffTabs', {}, ideClient) |
| 1334 | } catch (_) { |
| 1335 | // Silently ignore errors when closing diff tabs |
| 1336 | // This prevents exceptions if the IDE doesn't support this operation |
| 1337 | } |
| 1338 | } |
| 1339 | |
| 1340 | /** |
| 1341 | * Initializes IDE detection and extension installation, then calls the provided callback |