From e15d390b937692dd31dd3eda68805b5ff78fdc08 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 17 Jul 2021 01:35:22 -0500 Subject: [PATCH] fix: merge activate methods --- lib/main.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/main.js b/lib/main.js index e1c30d73..d31cf662 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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"] } @@ -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: { @@ -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))