microsoft / vscode-azurecontainerapps

Azure Container Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurecontainerapps
MIT License
33 stars 13 forks source link

The child nodes of the revision auto collapse after editing scaling range #317

Open v-xinda opened 1 year ago

v-xinda commented 1 year ago

OS: Win 10 Build Version: 20230329.6 Regression: Not a regression

Repro Steps:

  1. Create a container app -> Right click it -> Click "Choose Revision Mode..." -> Select "Multiple".
  2. Expand the container app -> Expand the "Revisions" node -> Expand the all child nodes.
  3. Right click "Scaling" node -> Click "Edit Scaling Range..." -> Set a range -> Enter.
  4. Check whether the child nodes keep expanded status.

Expect: The child nodes keep expanded status.

Screenshot 2023-03-30 at 16 45 47

Actual: The child nodes auto collapse after editing scaling range.

Screenshot 2023-03-30 at 16 46 08

More Info: This issue doesn't reproduce when the revision mode is "Single".

nturinski commented 1 year ago

This is kind of a weird one. When we change the scaling range, we are technically creating a new revision. When we create a new revision, we are refreshing the revisions node, which goes and gets the revisions again, This is causing things to collapse for some reason.

v-ruizh commented 1 year ago

This issue still reproduces on container apps extension 20230407.4, reopen it.