MCPcopy Create free account
hub / github.com/anus-dev/ANUS / disconnect

Method disconnect

packages/core/src/ide/ide-client.ts:201–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 }
200
201 async disconnect() {
202 if (this.state.status === IDEConnectionStatus.Disconnected) {
203 return;
204 }
205 for (const filePath of this.diffResponses.keys()) {
206 await this.closeDiff(filePath);
207 }
208 this.diffResponses.clear();
209 this.setState(
210 IDEConnectionStatus.Disconnected,
211 'IDE integration disabled. To enable it again, run /ide enable.',
212 );
213 this.client?.close();
214 }
215
216 getCurrentIde(): DetectedIde | undefined {
217 return this.currentIde;

Callers 5

cleanupMethod · 0.80
cleanupMethod · 0.80
cleanupFunction · 0.80
AppFunction · 0.80

Calls 4

closeDiffMethod · 0.95
setStateMethod · 0.95
closeMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected