-
Notifications
You must be signed in to change notification settings - Fork 36
Closed as not planned
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytriage-needed
Description
new setting:
python-env.searchPaths: []
it can be the following:
- an executable (/bin/python directly)
- can be the venv folder (if its just a folder, we search /bin/python)
- can be a regex command (we will search for this regex command)
(Supports regex but you should warn that this could cause efficiency concerns.)
given searchPaths we then need to make a FINALSEARCHSET.
- first use
await vscode.workspace.findFiles(xxxx, null);if there is a regex to findpython. save the grand-grand folder of this executable and add it toFINALSEARCHSET - next if there is a executable in
searchPathsthen get the grand-grand folder of this executable and add it toFINALSEARCHSET - if the
searchPathsitem is a folder, just add it AS IS toFINALSEARCHSET
once we have FINALSEARCHSET we want to update configure in src/managers/common/nativePythonFinder.ts to include FINALSEARCHSET in environmentDirectories.
add some trace logging where needed. also when getting a final set and the environmentDirectories, make sure to remove duplicates.
JorilxCopilot
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalitytriage-needed