Add explicit PEP 723 script environment setup (preview) - #5
Closed
StellaHuang95 wants to merge 2 commits into
Closed
Add explicit PEP 723 script environment setup (preview)#5StellaHuang95 wants to merge 2 commits into
StellaHuang95 wants to merge 2 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3cb82ae9-7424-40a4-9156-8c54ac6e0895
StellaHuang95
marked this pull request as ready for review
August 17, 2026 17:10
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3cb82ae9-7424-40a4-9156-8c54ac6e0895
Owner
Author
|
Closing this PR in favor of a clean-history replacement with the same current reviewed file changes. |
Owner
Author
|
Superseded by clean-history replacement #7. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This replaces the earlier automatic-routing implementation with an explicit setup command. It intentionally does not implement the full roadmap PR9 design.
What this preview does
Adds Python: Set Up Environment for Inline Script (
python-envs.setupInlineScriptEnvironment).The command:
.pyURI or the active editor;InlineScriptEnvManager.create(uri)so current dependencies andrequires-pythonselect/reuse the correct cache entry;setEnvironment(uri, environment, false)so PR7 persists the per-script association and activates it for the current session without writing project settings.A failed or cancelled setup leaves the prior association unchanged. Repeated setup is intentional: it lets metadata changes select a new cache entry without adding automatic metadata watchers.
Intentional limitations
pythonProjects[]registration;python-envs.inlineScripts.enabled.These limitations keep the first feedback rollout reversible and reduce regression risk.
Size
Validation