azure-functions-templates icon indicating copy to clipboard operation
azure-functions-templates copied to clipboard

VS Code Azure Functions extension isn't updating the FunctionName attribute with the user-provided function name for a new F# TimerTrigger like it does for the module name and other templates (possibly due to a typo in the TimerTrigger-FSharp template)

Open mikebattista opened this issue 5 years ago • 0 comments

Repro:

  • Install Azure Functions extension for VS Code
  • Set "azureFunctions.projectLanguage": "F#" in VS Code
  • Create a new function app in VS Code with "Azure Functions: Create New Project"
  • Create a new TimerTrigger function with "Azure Functions: Create Function" (switch from Verified to All to unlock the F# templates) and provide a custom name different from the default

Expected:

  • The module name and FunctionName attribute equal the user-provided function name

Actual:

  • The module name is updated but the FunctionName isn't. If adding multiple TimerTrigger functions in the same project, this will result in duplicate function name errors.

I noticed there is a typo in the TimerTriggerFSharp template where the FunctionName uses "CSharp" rather than "FSharp". I'm not sure what component in the pipeline updates the module name and FunctionName attribute, but this typo might be interfering with that.

mikebattista avatar Jul 25 '19 21:07 mikebattista