diff --git a/lib/main.js b/lib/main.js index 2d78b367..426f8c8c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -46,7 +46,6 @@ class PythonLanguageClient extends AutoLanguageClient { } async startServerProcess(projectPath) { - await new Promise(resolve => atom.whenShellEnvironmentLoaded(resolve)); const venvPath = (await detectPipEnv(projectPath)) || (await detectVirtualEnv(projectPath)); diff --git a/package.json b/package.json index a9c61da9..b77d7218 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,9 @@ "enhancedScopes": [ "source.python" ], + "activationHooks": [ + "core:loaded-shell-environment" + ], "configSchema": { "python": { "title": "Python Executable",