microsoft / vscode-azurefunctions

Azure Functions extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurefunctions
MIT License
290 stars 131 forks source link

Unable to add binding to Nodjs Azure Function Model 4 #4204

Closed AnjanRB closed 1 week ago

AnjanRB commented 2 weeks ago

I have created a NodeJS Azure Function using Model 4. I am not able to add binding in VS code, using context menu (right-click & add binding) I get this error when adding bindings. "Add binding is not supported for this project type."

Untitled

MicroFish91 commented 1 week ago

You no longer need to keep a function.json file for each trigger in the new V4 model as bindings are configured in code!

We will look into improving this error message for users in the future.

AnjanRB commented 1 week ago

Thank you for the response. I understand bindings are not maintained in function.json in V4 model. The option in context menu(right click) suggests developer can add binding (add binding code).