-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block interpreters from Positron dropdown #6525
Conversation
E2E Tests 🚀 |
@@ -116,7 +118,14 @@ export class PythonRuntimeManager implements IPythonRuntimeManager { | |||
*/ | |||
public registerLanguageRuntime(runtime: positron.LanguageRuntimeMetadata): void { | |||
const extraData = runtime.extraRuntimeData as PythonRuntimeExtraData; | |||
const pythonVersion: PythonVersion = toSemverLikeVersion(parseVersion(runtime.languageVersion)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this seems to be the best way to get from a version string to the PythonVersion
type. toSemverLikeVersion
is only used in legacy code upstream, so it has been deprecated.
I'm happy to put together a custom function for us if we don't want the deprecated function though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verified locally with a 3.7 pyenv. Looks great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I think it's fine to use the deprecated function given the note you added.
Should block <3.8 interpreters from being registered when found. It seems to fix everything for me locally, I think this is the only place where old interpreters could sneak by.
Release Notes
New Features
Bug Fixes
QA Notes
Python: Select Interpreter
, should not appear in dropdown