MCPcopy Create free account
hub / github.com/Noumena-Network/code / closeOpenDiffs

Function closeOpenDiffs

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

Source from the content-addressed store, hash-verified

1327 * This triggers IDE-specific actions like closing all diff tabs.
1328 */
1329export 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

Callers 1

REPLFunction · 0.85

Calls 1

callIdeRpcFunction · 0.85

Tested by

no test coverage detected