Closed
Description
This check is done to ensure if entered interpreter path is valid, and if so, the path is returned. I don't see the point of these checks, as we shouldn't support entering interpreter paths this way.
Variable 'pythonPath' refers to the path user entered
vscode-python/src/client/common/configSettings.ts
Lines 674 to 696 in 620b614
Also, the first check when ensuring if interpreter path is valid is we should be checking if the entered path exists, which we're not doing.
This leads to us launching 14 exec commands <python> -c '1234'
everytime a user enters an invalid path - leading to extension consuming too much CPU.