MCPcopy Index your code
hub / github.com/github/copilot-sdk / disposeIsolated

Function disposeIsolated

nodejs/test/e2e/rpc_server_plugins.e2e.test.ts:56–70  ·  view source on GitHub ↗
(
        client: CopilotClient,
        home: string,
        fixtureDir?: string
    )

Source from the content-addressed store, hash-verified

54 }
55
56 async function disposeIsolated(
57 client: CopilotClient,
58 home: string,
59 fixtureDir?: string
60 ): Promise<void> {
61 try {
62 await client.forceStop();
63 } catch {
64 // Best-effort cleanup.
65 }
66 tryRemoveDirectory(home);
67 if (fixtureDir) {
68 tryRemoveDirectory(fixtureDir);
69 }
70 }
71
72 function tryRemoveDirectory(directory: string): void {
73 try {

Calls 2

tryRemoveDirectoryFunction · 0.70
forceStopMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…