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

Correctly dispose config observer when servers are closed #219

Merged
merged 1 commit into from
May 25, 2018

Conversation

lgeiger
Copy link
Contributor

@lgeiger lgeiger commented May 24, 2018

Right now, config changes are observed until the package is deactivated.

This results in Uncaught Error: Connection is disposed. errors if the config is modified after the language server has been terminated, e.g., when closing all opened files.

This bug was reported multiple times in the ide-python package: atom-community/ide-python#63, atom-community/ide-python#82

This PR adds the config observer to the server disposable in order to watch for changes only when the server is running.

@damieng damieng merged commit 7b36abf into atom:master May 25, 2018
@damieng
Copy link
Contributor

damieng commented May 25, 2018

Thanks!

@lgeiger lgeiger deleted the dispose-config-observer branch May 25, 2018 14:02
@lgeiger
Copy link
Contributor Author

lgeiger commented May 25, 2018

Thanks for merging. Is there a release planned in the near future?

@damieng
Copy link
Contributor

damieng commented May 25, 2018

There's a couple more things that I'd like to at least correctly triage and perhaps merge/fix first #213 and #220

@lgeiger
Copy link
Contributor Author

lgeiger commented May 25, 2018

@damieng Cool, thanks for the info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants