Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 602302b

Browse files
committed
Correctly dispose config observer when server is closed
1 parent 1bdbd3c commit 602302b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/auto-languageclient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ export default class AutoLanguageClient {
320320

321321
const configurationKey = this.getRootConfigurationKey();
322322
if (configurationKey) {
323-
this._disposable.add(
323+
newServer.disposable.add(
324324
atom.config.observe(configurationKey, (config) => {
325325
const mappedConfig = this.mapConfigurationObject(config || {});
326326
if (mappedConfig) {

0 commit comments

Comments
 (0)