GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
415 stars 111 forks source link

Cloud Code Extension: Default XML Policy Template Not Generated When Creating New Policy Files #880

Closed kvrao33 closed 4 months ago

kvrao33 commented 8 months ago

Version information

Description: When attempting to create a new policy using the Cloud Code extension, the expected behavior is to generate a new XML file with the default template for the selected policy. However, the issue observed is that a blank XML file is created instead of the expected default XML template for the policy.

Repro steps:

  1. Open Visual Studio Code.
  2. Ensure that the Cloud Code extension is installed and activated.
  3. Navigate to the desired directory in the Explorer view.
  4. Right-click in the Explorer view or within the editor area to open the context menu.
  5. Select the option to create a new policy file.
  6. Observe that a new XML file is created, but it is blank instead of containing the default XML template for the selected policy.

Expected behavior: When creating a new policy file using the Cloud Code extension, the default XML template for the selected policy should be generated automatically in the newly created file.

shirishtrivikr commented 4 months ago

This has been fixed in the latest version.