microsoft / vscode-azurefunctions

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

There is no content in function_app.py file after creating a Python V2 Programming Model project #4020

Open v-ruizh opened 6 months ago

v-ruizh commented 6 months ago

OS: Ubuntu 22.04 Build Version: 20240301.18 Regression: Not a Regression

Repro Steps:

  1. Create a Python V2 Programming Model project.
  2. Open the function_app.py file.
  3. Check whether the content of function_app.py file shows well or not.

Expect: The content of function_app.py file shows well. image

Actual: There is no content in function_app.py file. image

More Info:

  1. This issue reproduces for all the Python V2 function project.
  2. Th content of function_app.py file shows well after creating the function project again to a same project folder.
  3. This issue does not reproduce on Windows and Mac platforms.
  4. This issue does not reproduce for Python V1 function project.