microsoft / vscode-azurestorage

Azure Storage extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestorage
MIT License
61 stars 38 forks source link

[Codespace] There is no file shown in "Open in File Explorer" after upload #898

Open jinglouMSFT opened 3 years ago

jinglouMSFT commented 3 years ago

I've tried this scenario. The experiences aren't optimal.

  1. In a newly created storage account, created a blob container called "container1"
  2. Right click on the blob container, then select "Upload Files..."
  3. In the command palette, select the readme.md file from: codespace ➜ ~/workspace/node-todo (master)

Actual result: once the upload completed, readme.md did show up under the container "container1" node

Continue testing:

  1. Right click on the "container1" node and select "Open in File Explorer"
  2. In the command palette, select "Open in new window". This will launch another tab of VS Code Codespace in the browser and on the "container1" node will be displayed.

Actual result: You will see the new tab "container1 [Codespaces] - Visual Studio Code - Insiders - Codespaces" like this: image

Clicking on the node "container1' shown as the last node in the above screenshot, you'll get the below error: image

Remember that at this point, I already have the file "readme.md" uploaded into container "container1" as shown in the main Codespaces window: image

BTW, this works as expected in normal VS Code with the storage extension. That is, the files are shown if i open in a new window.

wwlorey commented 3 years ago

Related: https://github.com/microsoft/vscode/issues/110352

jinglouMSFT commented 3 years ago

When microsoft/vscode#110352 is fixed, please also try the following scenario:

  1. Create a new storage account, which will by default will support static website
  2. Once the storage account created, expand it so you see the Blob containers. Expand the container node. You should see $web
  3. Click on "Open in File Explorer..." and select to open in a new web/window
  4. In the new window/web, you will see two nodes: "OPEN EDITORS" and "$WEB [CODESPACES]. Expand "$WEB". You should see a subnode/file called "$web" in orange color
  5. Double click on "$web".
    You are expected to receive the following error: image

I expect these errors to go away if this bug is fixed.