Skip to content

Commit

Permalink
Restarting linter should use the same python (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig authored May 6, 2022
1 parent aeacd93 commit 68fe00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/linterLS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ export async function createLinterServer(
outputChannel: OutputChannel,
initializationOptions: ILinterInitOptions,
): Promise<LanguageClient> {
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() },
};

Expand Down

0 comments on commit 68fe00b

Please sign in to comment.