MCPcopy
hub / github.com/continuedev/continue / kill

Method kill

core/util/tts.ts:80–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 }
79
80 static async kill(): Promise<void> {
81 return new Promise<void>((resolve, reject) => {
82 // Only kill a TTS process if it's still running
83 if (TTS.handle && TTS.handle.exitCode === null) {
84 // Use a timeout in case of zombie processes
85 let killTimeout: NodeJS.Timeout = setTimeout(() => {
86 reject(`Unable to kill TTS process: ${TTS.handle?.pid}`);
87 }, ttsKillTimeout);
88
89 // Resolve our promise once the program has exited
90 TTS.handle.once("exit", () => {
91 clearTimeout(killTimeout);
92 TTS.handle = undefined;
93 resolve();
94 });
95
96 TTS.handle.kill();
97 } else {
98 resolve();
99 }
100 });
101 }
102
103 static async setup() {
104 TTS.os = os.platform();

Callers 15

runTerminalCommandImplFunction · 0.80
llmStreamChatFunction · 0.80
executeDockerCommandMethod · 0.80
killTerminalProcessFunction · 0.80
readMethod · 0.80
resetTimeoutFunction · 0.80
runReviewInWorkerFunction · 0.80
waitForPatternFunction · 0.80
cancelJobMethod · 0.80
killAllJobsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected