Skip to content

Conversation

kipavy
Copy link

@kipavy kipavy commented Aug 21, 2025

🚧 DRAFT POC - AI Generated Code 🚧

GitHub Copilot generated most of this code. Looking for feedback on approach.

What it adds

Two new commands for managing Python PATH:

  • Add folders to Python PATH (creates .pth files)
  • Open Python PATH file for editing

Where to find them

  • Command palette: "Python: Add Folder to Python PATH"
  • Right-click folders in Explorer
  • Right-click environments in Python view
  • Hovering on venvs in extension menu

How it works

  • Finds site-packages using Python's own modules
  • Creates vscode_extra_paths.pth files

Closes #735

First VS Code extension attempt - generated code for testing feasibility

@kipavy kipavy marked this pull request as ready for review August 21, 2025 12:18
@kipavy
Copy link
Author

kipavy commented Aug 22, 2025

@kipavy please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.

@microsoft-github-policy-service agree [company="{your company}"]

Options:

  • (default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
@microsoft-github-policy-service agree
  • (when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.
@microsoft-github-policy-service agree company="Microsoft"

Contributor License Agreement

@microsoft-github-policy-service agree

@eleanorjboyd
Copy link
Member

going to wait for community feedback on the issue before reviewing this PR as the issue will determine what exactly we need to add feature-wise

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Easily Add Folder to PYTHONPATH from VS Code UI

2 participants