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.

贡献者指南