Skip to content

Commit b43bc25

Browse files
author
Kartik Raj
authored
Do not recommend Python2 as an interpreter (#20628)
1 parent ddc765e commit b43bc25

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/client/interpreter/configuration/environmentTypeComparer.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ export class EnvironmentTypeComparer implements IInterpreterComparer {
100100
// We're not sure if these envs were created for the workspace, so do not recommend them.
101101
return false;
102102
}
103+
if (i.version?.major === 2) {
104+
return false;
105+
}
103106
return true;
104107
});
105108
filteredInterpreters.sort(this.compare.bind(this));

0 commit comments

Comments
 (0)