From 08f7517857a378b85acea7d2f70d175314947eaf Mon Sep 17 00:00:00 2001 From: Kevin Rose Date: Thu, 12 Oct 2017 21:34:59 -0500 Subject: [PATCH] get env w/o 100% CPU usage --- lib/main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/main.js b/lib/main.js index 121c050e..2dcc142a 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,5 +1,4 @@ const cp = require("child_process"); -const shellEnv = require("shell-env"); const { shell } = require("electron"); const { AutoLanguageClient } = require("atom-languageclient"); @@ -29,10 +28,10 @@ class PythonLanguageClient extends AutoLanguageClient { } async startServerProcess(projectPath) { - const env = await shellEnv(); + await atom.updateProcessEnv(); const childProcess = cp.spawn(atom.config.get("ide-python.pylsPath"), { cwd: projectPath, - env: env + env: process.env }); childProcess.on("error", err => atom.notifications.addError(