Skip to content

switch new project add to create method #336

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

eleanorjboyd
Copy link
Member

@eleanorjboyd eleanorjboyd commented Apr 24, 2025

  • renamed addPythonProject in src/features/envCommands.ts to addPythonProjectCommand (as it is only a command entry point)
  • moved responsibility so ProjectCreators are responsible for adding their created projects to the ProjectManager list
  • updated addPythonProjectCommand so it calls the selected ProjectCreator create method OR (if the resource param already a ProjectItem) just add it to the ProjectManager list

@eleanorjboyd eleanorjboyd self-assigned this Apr 24, 2025
@eleanorjboyd eleanorjboyd marked this pull request as ready for review April 24, 2025 18:51
Copy link

⚠️ This PR originates from a fork. Due to security restrictions, pipelines from forks are no longer triggered automatically. Learn more.

If the changes appear safe, you can manually trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering bot added this to the April 2025 milestone Apr 24, 2025
@eleanorjboyd
Copy link
Member Author

@karthiknadig question here is how we might know if findExisting project should be a project or not. Like if it has an env or not. Not sure how to tell this and build it into the logic

@karthiknadig
Copy link
Member

We should remove the autofind projects feature and think about a better approach to it. What we have now was a demonstration of what you could do.

@eleanorjboyd eleanorjboyd merged commit f34f14c into microsoft:main Apr 25, 2025
6 checks passed
eleanorjboyd added a commit that referenced this pull request Apr 25, 2025
- renamed `addPythonProject` in src/features/envCommands.ts to
`addPythonProjectCommand` (as it is only a command entry point)
- moved responsibility so ProjectCreators are responsible for adding
their created projects to the ProjectManager list
- updated `addPythonProjectCommand` so it calls the selected
ProjectCreator create method OR (if the resource param already a
ProjectItem) just add it to the ProjectManager list
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.

2 participants