microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
88 stars 35 forks source link

Pop up an extra dialog when creating a HTTP function for the `angular-basic` project #638

Open v-mengwe opened 2 years ago

v-mengwe commented 2 years ago

OS: All Build Version: 20220330.1 Function extension: Release build

Repro Steps:

  1. Clone https://github.com/staticwebdev/angular-basic -> Open the angular-basic project in VS Code.
  2. Open VS Code terminal and run "npm install".
  3. Click "Create HTTP Function..." to create a HTTP endpoint.
  4. Check whether the next step is to ask to select a language.

Expect: The next step is to ask to select a language. image

Actual: Pop up an extra dialog like below. image

More Info:

  1. It will ask to provide a function name if clicking "Yes" button.
  2. We cannot skip this dialog and proceed to the next step.
alexweininger commented 2 years ago

I'm unable to reproduce this, are you re-cloning the staticwebdev/angular-basic repository on each test?

v-mengwe commented 2 years ago

Build Version: 20220407.5

Yes, I re-clones the staticwebdev/angular-basic repository on each test. This issue doesn't reproduce before running "npm install".

  1. Open VS Code terminal and run "npm install".

ss

v-mengwe commented 2 years ago

Verified on the latest build 20220513.1, this issue still reproduces for now.

alexweininger commented 2 years ago

The issue is that the Function language prompt is being skipped.

This issue doesn't reproduce before running "npm install".

Based on this detail, we might be mistakenly detecting a file in the node_modules folder.