MCPcopy Index your code
hub / github.com/codeaashu/claude-code / closeOpenDiffs

Function closeOpenDiffs

src/utils/ide.ts:1270–1279  ·  view source on GitHub ↗
(
  ideClient: ConnectedMCPServer,
)

Source from the content-addressed store, hash-verified

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

Callers 1

REPLFunction · 0.85

Calls 1

callIdeRpcFunction · 0.85

Tested by

no test coverage detected