Skip to content

Show TreeItem as disabled when command enablement is false - #157516

Merged
Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/disabledTreeItem
Aug 9, 2022
Merged

Benjamin Christopher Simmonds (benibenj) merged 2 commits into
mainfrom
benibenj/disabledTreeItem

Conversation

@benibenj

Copy link
Copy Markdown
Contributor

When a TreeItem has a command with enablement evaluating to false, show the TreeItem as disabled. #102794

I'm tuning down the opacity (60%) and setting the cursor to default (not pointer). Menu actions on the Node are still displayed with full opacity and the pointer cursor if it's command's enablement is not false.

It would probably make sense to merge this after #157493 has been fixed.

@benibenj

Copy link
Copy Markdown
Contributor Author

Recording 2022-08-08 at 16 13 35

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, just a few questions!

@alexr00 Alex Ross (alexr00) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

My fix for #157493 will likely depend on the originalId change here, so this can be merged before I fix the other issue.

@benibenj
Benjamin Christopher Simmonds (benibenj) deleted the benibenj/disabledTreeItem branch August 9, 2022 07:14
Joyce Er (joyceerhl) pushed a commit that referenced this pull request Aug 10, 2022
Show TreeItem as disabled when command enablement is false
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 23, 2022
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.

3 participants