microsoft / vscode-azuretools

Common packages for building Azure extensions for VS Code
MIT License
106 stars 67 forks source link

azureResourceGroups.selectedSubscriptions at Workspace level #1808

Open jdelombaert opened 3 weeks ago

jdelombaert commented 3 weeks ago

Currently the filtering of subscriptions (azureResourceGroups.selectedSubscriptions) is stored at User-level, but it would be nice to be able to do this also at Workspace-level. I use different workspace-files (a file per customer) and this would allow someone to have the correct filtering per workspace/customer. /J

bwateratmsft commented 3 weeks ago

You should be able to copy the value of azureResourceGroups.selectedSubscriptions into your workspace settings.json file. The "select subscriptions" command will still store at the user level, but it should respect the value if you put one in workspace settings.json.

jdelombaert commented 3 weeks ago

I already tried that. Move the entries from user to workspace, but under workspace they are not recognized.

bwateratmsft commented 3 weeks ago

Hm, that's a bug then. I'll transfer this to the vscode-azuretools repo because it would be an issue in the auth package we consume from there.