Skip to content
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

createFunction API loses options if no folder is given #3115

Closed
Charles-Gagnon opened this issue Apr 15, 2022 · 0 comments · Fixed by #3116
Closed

createFunction API loses options if no folder is given #3115

Charles-Gagnon opened this issue Apr 15, 2022 · 0 comments · Fixed by #3116
Milestone

Comments

@Charles-Gagnon
Copy link
Contributor

  1. Call createFunction API and pass in some options, such as language (but NOT folderPath) in an empty workspace (no project open)
  2. When prompted, choose to Create New Project

Expected : Create project flow keeps options passed in

Actual : The options are lost, so for example if you specified a language it will still prompt to select a language later on in the flow

The issue seems to be here : https://github.com/microsoft/vscode-azurefunctions/blob/main/src/commands/createFunction/createFunction.ts#L80

The azureFunctions.createNewProject command is called to restart the flow but the options are never passed in (and the current execution is ended due to throwing an error farther down.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants