Skip to content

Commit e15d390

Browse files
committed
fix: merge activate methods
1 parent c26448e commit e15d390

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

lib/main.js

+5-7
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ class PythonLanguageClient extends AutoLanguageClient {
2323
atom.notifications.addSuccess("ide-pyhon: atom-ide-base was installed and enabled...")
2424
})
2525
}
26+
// Remove deprecated option
27+
atom.config.unset("ide-python.pylsPath")
28+
debuggerActivate()
2629
}
2730

31+
/* eslint-disable class-methods-use-this */
2832
getGrammarScopes() {
2933
return ["source.python", "python"]
3034
}
@@ -41,13 +45,6 @@ class PythonLanguageClient extends AutoLanguageClient {
4145
return "ide-python"
4246
}
4347

44-
activate() {
45-
// Remove deprecated option
46-
atom.config.unset("ide-python.pylsPath")
47-
super.activate()
48-
debuggerActivate()
49-
}
50-
5148
mapConfigurationObject(configuration) {
5249
return {
5350
pyls: {
@@ -57,6 +54,7 @@ class PythonLanguageClient extends AutoLanguageClient {
5754
},
5855
}
5956
}
57+
/* eslint-enable class-methods-use-this */
6058

6159
async startServerProcess(projectPath) {
6260
const venvPath = (await detectPipEnv(projectPath)) || (await detectVirtualEnv(projectPath))

0 commit comments

Comments
 (0)