Skip to content

Commit

Permalink
fix: merge activate methods
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Jul 17, 2021
1 parent c26448e commit e15d390
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ class PythonLanguageClient extends AutoLanguageClient {
atom.notifications.addSuccess("ide-pyhon: atom-ide-base was installed and enabled...")
})
}
// Remove deprecated option
atom.config.unset("ide-python.pylsPath")
debuggerActivate()
}

/* eslint-disable class-methods-use-this */
getGrammarScopes() {
return ["source.python", "python"]
}
Expand All @@ -41,13 +45,6 @@ class PythonLanguageClient extends AutoLanguageClient {
return "ide-python"
}

activate() {
// Remove deprecated option
atom.config.unset("ide-python.pylsPath")
super.activate()
debuggerActivate()
}

mapConfigurationObject(configuration) {
return {
pyls: {
Expand All @@ -57,6 +54,7 @@ class PythonLanguageClient extends AutoLanguageClient {
},
}
}
/* eslint-enable class-methods-use-this */

async startServerProcess(projectPath) {
const venvPath = (await detectPipEnv(projectPath)) || (await detectVirtualEnv(projectPath))
Expand Down

0 comments on commit e15d390

Please sign in to comment.