Show project setup files in Project View - #1786
Draft
Eduardo Villalpando Mello (edvilme) wants to merge 3 commits into
Draft
Eduardo Villalpando Mello (edvilme) wants to merge 3 commits into
Eduardo Villalpando Mello (edvilme) wants to merge 3 commits into
Conversation
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 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, orrequirements.txt), updating the tree view to display these files, and minor refactoring for clarity and consistency.Python project setup file detection and UI improvements:
discoverProjectSetupFilemethod to thePythonProjectinterface and implemented it inPythonProjectsImpl, allowing detection of common setup files at the project root or when the project URI points directly to a setup file. [1] [2] [3]ProjectViewandtreeViewItems.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:
needsInstallationproperty to thePackageInfointerface and implemented it inPythonPackageImpl, defaulting tofalse. [1] [2]PythonProjectManagerand related files. [1] [2] [3] [4] [5] [6] [7] [8]Test and formatting improvements:
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.