MCPcopy
hub / github.com/microsoft/vscode-languageserver-node / stop

Method stop

client/src/main.ts:170–181  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168 }
169
170 public stop(): Thenable<void> {
171 return super.stop().then(() => {
172 if (this._serverProcess) {
173 let toCheck = this._serverProcess;
174 this._serverProcess = undefined;
175 if (this._isDetached === void 0 || !this._isDetached) {
176 this.checkProcessDied(toCheck);
177 }
178 this._isDetached = undefined;
179 }
180 });
181 }
182
183 private checkProcessDied(childProcess: ChildProcess | undefined): void {
184 if (!childProcess) {

Callers 5

startFunction · 0.80
initializeFunction · 0.80
handleConnectionErrorFunction · 0.80
startMethod · 0.80

Calls 1

checkProcessDiedMethod · 0.95

Tested by

no test coverage detected