Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2 edit tags command for resources #461

Merged
merged 6 commits into from
Dec 21, 2022
Merged

Conversation

alexweininger
Copy link
Member

Depends on microsoft/vscode-azuretools#1257

I will add support for editing tags on resource groups in a follow up PR.

Also, I need to add a dontUnwrap flag to appResourceExperience in utils so to support getting an item from the picker here.

@alexweininger alexweininger requested a review from a team as a code owner December 20, 2022 21:14
src/commands/tags/TagFileSystem.ts Show resolved Hide resolved
@@ -46,7 +45,7 @@ export class AppResourceTreeItem extends ResolvableTreeItemBase implements Group
this.groupConfig = createGroupConfigFromResource(resource, root.id);

this.contextValues.add(AppResourceTreeItem.contextValue);
ext.tagFS.fireSoon({ type: FileChangeType.Changed, item: this });
// ext.tagFS.fireSoon({ type: FileChangeType.Changed, item: this });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain why you commented this out? Should it go back eventually?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a v1 class that isn't used anymore. It's a lot of work to delete everything, will do in a follow up PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I start deleting files it just shows how much there is left to do. For example:

  1. Toggle show all resources command
  2. Group by tags needs updated so that it doesn't rely on the root tree item to get subscriptions
  3. revealTreeItem

I'm sure there's more

@alexweininger alexweininger merged commit 0ea53d6 into api-v2 Dec 21, 2022
@alexweininger alexweininger deleted the alex/api-v2-edit-tags branch December 21, 2022 23:51
@microsoft microsoft locked and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants