MCPcopy Index your code
hub / github.com/microsoft/vscode / kill

Method kill

test/automation/src/code.ts:243–257  ·  view source on GitHub ↗
(pid: number)

Source from the content-addressed store, hash-verified

241 }
242
243 private kill(pid: number): void {
244 try {
245 process.kill(pid, 0); // throws an exception if the process doesn't exist anymore.
246 } catch (e) {
247 this.logger.log('Smoke test kill(): returning early because process does not exist anymore');
248 return;
249 }
250
251 try {
252 this.logger.log(`Smoke test kill(): Trying to SIGTERM process: ${pid}`);
253 process.kill(pid);
254 } catch (e) {
255 this.logger.log('Smoke test kill(): SIGTERM failed', e);
256 }
257 }
258
259 async getElement(selector: string): Promise<IElement | undefined> {
260 return (await this.driver.getElements(selector))?.[0];

Callers 1

exitMethod · 0.95

Calls 2

killMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected