microsoft / vscode-azureresourcegroups

VS Code extension for managing Azure resources.
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azureresourcegroups
MIT License
52 stars 28 forks source link

Migrate "Upload to Cloud Shell" command #852

Closed alexweininger closed 4 months ago

alexweininger commented 4 months ago

This PR migrates the "Upload to Cloud Shell" command from Azure Account, to the Resources extension. The command allows users to upload files to Azure Cloud Shell.

The entry points are:

  1. File explorer context menus on files
  2. Open file tab context menu
  3. Command palette (file picker is shown)

The command requires users to have a cloud shell terminal open before running the command. To do this, we track open cloud shell terminals with a context value, and only show the command entry points when the value is greater than 0. I made sure to change the context key from what was used in Accounts to avoid any weirdness.

alexweininger commented 4 months ago

The base changed. I'll fix it...