Skip to content

Commit 8cf8c56

Browse files
new python project: only display supported versions (#9844)
<!-- Thank you for submitting a pull request. If this is your first pull request you can find information about contributing here: * https://github.com/posit-dev/positron/blob/main/CONTRIBUTING.md We recommend synchronizing your branch with the latest changes in the main branch by either pulling or rebasing. --> <!-- Describe briefly what problem this pull request resolves, or what new feature it introduces. Include screenshots of any new or altered UI. Link to any GitHub issues but avoid "magic" keywords that will automatically close the issue. If there are any details about your approach that are unintuitive or you want to draw attention to, please describe them here. --> Addresses #9365. Filters the New Python Project interpreters to those with supported versions. ### Release Notes <!-- Optionally, replace `N/A` with text to be included in the next release notes. The `N/A` bullets are ignored. If you refer to one or more Positron issues, these issues are used to collect information about the feature or bugfix, such as the relevant language pack as determined by Github labels of type `lang: `. The note will automatically be tagged with the language. These notes are typically filled by the Positron team. If you are an external contributor, you may ignore this section. --> #### New Features - N/A #### Bug Fixes - Don't show unsupported versions in the New Python Project flow #9365 ### QA Notes <!-- Positron team members: please add relevant e2e test tags, so the tests can be run when you open this pull request. - Instructions: https://github.com/posit-dev/positron/blob/main/test/e2e/README.md#pull-requests-and-test-tags - Available tags: https://github.com/posit-dev/positron/blob/main/test/e2e/infra/test-runner/test-tags.ts --> @:new-folder-flow @:web @:rhel-web <!-- Add additional information for QA on how to validate the change, paying special attention to the level of risk, adjacent areas that could be affected by the change, and any important contextual information not present in the linked issues. --> See reprex in the original issue.
1 parent cbb5f74 commit 8cf8c56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/workbench/browser/positronNewFolderFlow/newFolderFlowState.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,8 @@ export class NewFolderFlowStateManager
970970
// Once the runtime startup is complete, we can return the filtered list of interpreters.
971971
const langId = this._getLangId();
972972
let runtimesForLang = this._services.languageRuntimeService.registeredRuntimes
973-
.filter(runtime => runtime.languageId === langId);
973+
.filter(runtime => runtime.languageId === langId)
974+
.filter(runtime => runtime.extraRuntimeData?.supported ?? true);
974975

975976
// If we're creating a new Python environment, only return Global runtimes.
976977
if (langId === LanguageIds.Python

0 commit comments

Comments
 (0)