vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

Having multiple create buttons is confusing

Open fiveisprime opened this issue 1 year ago • 3 comments

When a customer has both Functions and SWA, it's confusing to see this:

Screen Shot 2022-09-21 at 9 06 09 AM

I know that the commands are contributed independently, but what's possible to simplify how this is exposed?

fiveisprime avatar Sep 21 '22 18:09 fiveisprime

Hm, it's more clear from the command menu as it's prefixed with the extension:

MicrosoftTeams-image (1) MicrosoftTeams-image

but I imagine that would be quite wordy for the dropdown, might get truncated?

I have to admit, I'm now confused (as a user) as to why Static Web Apps need to create HTTP functions, but that's because I haven't explored SWAs at all. I might have a better suggestion when I learn more about SWAs.

cc @kjaymiller (who took those screenshots)

pamelafox avatar Sep 21 '22 18:09 pamelafox

You can create a static web app from an azure function. I haven't tried this to see the difference but to my knowledge there are some javascript frameworks that can deploy a static site with a command. My assumption would be that this is to support that workflow.

kjaymiller avatar Sep 21 '22 18:09 kjaymiller

We've been brainstorming solutions to this issue over on https://github.com/microsoft/vscode-azureresourcegroups/issues/316, feel free to chime in.

alexweininger avatar Sep 21 '22 22:09 alexweininger

Temporarily, we can change the labels to be more explicit about which project it is adding to.

nturinski avatar Oct 06 '22 22:10 nturinski