Skip to content

Commit 1feeb75

Browse files
committed
Use atom-languageclient to watch config changes
1 parent 6bf42f9 commit 1feeb75

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/main.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,21 @@ class PythonLanguageClient extends AutoLanguageClient {
1111
getGrammarScopes() {
1212
return ["source.python"];
1313
}
14+
1415
getLanguageName() {
1516
return "Python";
1617
}
18+
1719
getServerName() {
1820
return "pyls";
1921
}
2022

21-
postInitialization({ connection }) {
22-
this._disposable.add(
23-
atom.config.observe("ide-python.pylsPlugins", params => {
24-
connection.didChangeConfiguration({
25-
settings: { pyls: { plugins: params } }
26-
});
27-
})
28-
);
23+
getRootConfigurationKey() {
24+
return "ide-python.pylsPlugins";
25+
}
26+
27+
mapConfigurationObject(configuration) {
28+
return { pyls: { plugins: configuration } }
2929
}
3030

3131
async startServerProcess(projectPath) {

0 commit comments

Comments
 (0)