From 602302b98bd948c60269ebcd63021c755a075288 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Thu, 24 May 2018 22:51:29 +0200 Subject: [PATCH] Correctly dispose config observer when server is closed --- lib/auto-languageclient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/auto-languageclient.ts b/lib/auto-languageclient.ts index ea939ec..9d0d2e3 100644 --- a/lib/auto-languageclient.ts +++ b/lib/auto-languageclient.ts @@ -320,7 +320,7 @@ export default class AutoLanguageClient { const configurationKey = this.getRootConfigurationKey(); if (configurationKey) { - this._disposable.add( + newServer.disposable.add( atom.config.observe(configurationKey, (config) => { const mappedConfig = this.mapConfigurationObject(config || {}); if (mappedConfig) {