Azure/azure-functions-core-tools

Make sure default trigger name is unique

開放

#3,262 建立於 2023年2月6日

 (1 則留言) (0 個反應) (0 位負責人)C# (491 個分叉)auto 404
area: func newfeaturegood first issue

倉庫指標

星標
 (1,456 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南