From 68fe00bffd603b2e8ada3a797ff89f9c070fce7b Mon Sep 17 00:00:00 2001 From: Karthik Nadig Date: Thu, 5 May 2022 17:58:38 -0700 Subject: [PATCH] Restarting linter should use the same python (#82) --- src/common/linterLS.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/linterLS.ts b/src/common/linterLS.ts index 461457d9..0d180d10 100644 --- a/src/common/linterLS.ts +++ b/src/common/linterLS.ts @@ -38,10 +38,10 @@ export async function createLinterServer( outputChannel: OutputChannel, initializationOptions: ILinterInitOptions, ): Promise { - const command = interpreter.shift() ?? 'python'; + const command = interpreter[0]; const serverOptions: ServerOptions = { command, - args: interpreter.concat([LINTER_SCRIPT_PATH]), + args: interpreter.slice(1).concat([LINTER_SCRIPT_PATH]), options: { cwd: getProjectRoot() }, };