microsoft / vscode-azurefunctions

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

[Suggestion] It would be better to remove the containerized function app when executing containerized function app unsupported commands #4174

Open v-ruizh opened 3 weeks ago

v-ruizh commented 3 weeks ago

OS: All Build Version: v1.15.1-alpha.0 Regression: Not a Regression

Repro Steps:

  1. Create a containerized function app.
  2. F1 -> Select "Azure Functions: Configure Deployment Source...".
  3. Check whether containerized function app shows in the function app list.

Actual: The containerized function app shows in the function app list. image

Suggestion: It would be better to remove the containerized function app when executing containerized function app unsupported commands.

More Info:

  1. Fail to execute "Configure Deployment Source..." command for a containerized function app. image
  2. This bug also reproduces when executing other containerized function app unsupported commands, such as "Start/Stop Streaming Logs", "Start/Restart/Stop", "Deploy to Slot"...
motm32 commented 3 weeks ago

Hello! Thanks for filing this issue. Even though the containerized function app does show in the quick pick when a containerized function app is chosen for these unsupported commands an error like this should show up: image Please let me know if that is not the case!

v-ruizh commented 3 weeks ago

Yes, I added the more info in the bug. There is an error when executing the unsupported commands for containerized function app. I saw you have fixed the same issue for Deploy commands, so log a new bug for other commands.

Is this by design for other unsupported commands?