From 10786470dd71e352822b954ed551d9e307db35ae Mon Sep 17 00:00:00 2001 From: Kartik Raj Date: Thu, 2 Feb 2023 15:14:32 +0530 Subject: [PATCH] Do not recommend Python2 as an interpreter --- .../interpreter/configuration/environmentTypeComparer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/client/interpreter/configuration/environmentTypeComparer.ts b/src/client/interpreter/configuration/environmentTypeComparer.ts index e3c77a6b2d6d..992e910d8fc5 100644 --- a/src/client/interpreter/configuration/environmentTypeComparer.ts +++ b/src/client/interpreter/configuration/environmentTypeComparer.ts @@ -100,6 +100,9 @@ export class EnvironmentTypeComparer implements IInterpreterComparer { // We're not sure if these envs were created for the workspace, so do not recommend them. return false; } + if (i.version?.major === 2) { + return false; + } return true; }); filteredInterpreters.sort(this.compare.bind(this));