MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / closeOpenDiffs

Function closeOpenDiffs

source code/utils/ide.ts:1272–1281  ·  view source on GitHub ↗
(
  ideClient: ConnectedMCPServer,
)

Source from the content-addressed store, hash-verified

1270 * This triggers IDE-specific actions like closing all diff tabs.
1271 */
1272export 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

Callers 1

REPLFunction · 0.85

Calls 1

callIdeRpcFunction · 0.85

Tested by

no test coverage detected