Skip to content

Show project dependency files in Project View - #1786

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

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

Conversation

@edvilme

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

Copy link
Copy Markdown
Contributor
image

Contributes to #1042

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

Python project dependency file detection and UI improvements:

  • Added a discoverDependencyFiles method to the PythonProject interface and implemented it in PythonProjectsImpl, allowing detection of common dependency files at the project root or when the project URI points directly to a dependency file. [1] [2] [3]
  • Updated the project tree view (ProjectView and treeViewItems.ts) to display the detected dependency file through ProjectDependencyFile 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:

  • Added focused coverage for dependency-file discovery and the ProjectDependencyFile tree item in projectDependencyFiles.unit.test.ts and treeViewItems.unit.test.ts.

  • 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 dependency 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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@edvilme Eduardo Villalpando Mello (edvilme) changed the title Show project setup files in Project View Show project dependency files in Project View Sep 15, 2026
@edvilme

Eduardo Villalpando Mello (edvilme) commented Sep 16, 2026

Copy link
Copy Markdown
Contributor Author

@edvilme

Copy link
Copy Markdown
Contributor Author

Copilot resolve the merge conflicts in this pull request

Co-authored-by: edvilme <5952839+edvilme@users.noreply.github.com>
Co-authored-by: edvilme <5952839+edvilme@users.noreply.github.com>
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.

3 participants