Azure/azure-functions-core-tools

Make sure default trigger name is unique

Offen

#3.262 geöffnet am 06.02.2023

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)C# (491 Forks)auto 404
area: func newfeaturegood first issue

Repository-Metriken

Stars
 (1.456 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

For func new, if users don't pass in a name, the default is trigger name, like "HttpTrigger". If a trigger with this name already existed, users would be asked about overwriting. But if the intention wasn't to overwrite (because the user didn't know about the default name), they'd have to cancel and start again. It could get annoying if they forget that the default name is the same each time and need to cancel and restart.

VSCode currently increments trigger name automatically to ensure there's no duplicate.

Contributor Guide