Executing Azure Functions in CodeSpaces


I’m having problems to run azure functions in codespaces. I already installed the Azure Functions App Core tools.

On the first time I execute the Azure function, it works like a charm. I see the messages in the terminal, it makes the private port forward for me and open the browser, it’s great.

But after I end the execution (shift+f5), when I try to execute one more time it doesn’t do anything of this. It only opens a popup for me to choose the environment (.Net core) and opens the Launch.json file.

No messages on the terminal, no port forward, no browser being opened, nothing. What am I doing wrong?

Edit: When I close codespaces and open again, the functions are back, but I can’t keep closing and opening it again.

Kind Regards,