microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 131 forks source link

The default content for "Enter request body" in the Flex Consumption Node.js function app is different from the regular Node.js function app #4133

Open v-ruizh opened 1 month ago

v-ruizh commented 1 month ago

OS: Windows 10 Build Version: 20240514.1 Regression: Not a Regression

Repro Steps:

  1. Create a new JavaScript project with HttpTrigger function selected.
  2. Create one regular Node.js function app and deploy the above project to it.
  3. Right click the HttpTrigger function in this regular Node.js function app and select "Execute Function Now...".
  4. The default content for "Enter request body" in this regular Node.js function app shows as below. image
  5. Create one Flex Consumption Node.js function app and deploy the same project to it.
  6. Right click the HttpTrigger function in this Flex Consumption Node.js function app and select "Execute Function Now...".
  7. Check whether the default content for "Enter request body" in the Flex Consumption Node.js function app is the same as the regular Node.js function app.

Expect: The default content for "Enter request body" in the Flex Consumption Node.js function app is the same as the regular Node.js function app.

Actual: The default content for "Enter request body" in the Flex Consumption Node.js function app is different from the regular Node.js function app. image

More Info: Executing function from workspace view during debugging, the default content for "Enter request body" is the same as the regular function app.