Skip to content

Show project setup files in Project View - #1786

Draft
Eduardo Villalpando Mello (edvilme) wants to merge 3 commits into
mainfrom
project-setup-file
Draft

Eduardo Villalpando Mello (edvilme) wants to merge 3 commits into
mainfrom
project-setup-file

Conversation

@edvilme

@edvilme Eduardo Villalpando Mello (edvilme) commented Sep 15, 2026

Copy link
Copy Markdown
Contributor
image

This pull request introduces enhancements to the Python project management features, focusing on improved project setup file detection and UI representation. The main changes include adding the ability for Python projects to discover their setup files (like pyproject.toml, setup.py, or requirements.txt), updating the tree view to display these files, and minor refactoring for clarity and consistency.

Python project setup file detection and UI improvements:

  • Added a discoverProjectSetupFile method to the PythonProject interface and implemented it in PythonProjectsImpl, allowing detection of common setup files at the project root or when the project URI points directly to a setup file. [1] [2] [3]
  • Updated the project tree view (ProjectView and treeViewItems.ts) to display the detected setup file as a child node under each project, with a command to open the file in the editor. [1] [2] [3] [4]

API and data model updates:

  • Added a needsInstallation property to the PackageInfo interface and implemented it in PythonPackageImpl, defaulting to false. [1] [2]
  • Minor API signature and import order cleanups for consistency, especially in PythonProjectManager and related files. [1] [2] [3] [4] [5] [6] [7] [8]

Test and formatting improvements:

  • Refactored test imports and improved assertion formatting for clarity in newScriptProject.unit.test.ts. [1] [2] [3] [4] [5] [6]

These changes collectively enhance the user experience by making project setup files more discoverable and accessible, and improve the maintainability of the codebase.

@edvilme Eduardo Villalpando Mello (edvilme) changed the title Project setup file Show project setup files in Project View Sep 15, 2026
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.

1 participant