dispose the tool ouput when the window closes.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2020-07-23 13:58:33 +02:00
parent 84016f4e1e
commit a54c860dbb

View File

@ -22,7 +22,12 @@ export class ToolOutputServiceServerImpl implements ToolOutputServiceServer {
}
disposeClient(client: ToolOutputServiceClient): void {
const index = this.clients.indexOf(client);
if (index === -1) {
console.warn(`Could not dispose tools output client. It was not registered.`);
return;
}
this.clients.splice(index, 1);
}
dispose(): void {