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

Show TreeItem as disabled when command enablement is false #157516

Merged
merged 2 commits into from Aug 9, 2022

Conversation

benibenj
Copy link
Contributor

@benibenj benibenj commented Aug 8, 2022

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 benibenj self-assigned this Aug 8, 2022
@benibenj benibenj requested a review from alexr00 August 8, 2022 13:57
@VSCodeTriageBot VSCodeTriageBot added this to the August 2022 milestone Aug 8, 2022
@benibenj
Copy link
Contributor Author

benibenj commented Aug 8, 2022

Recording 2022-08-08 at 16 13 35

Copy link
Member

@alexr00 alexr00 left a comment

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!

Copy link
Member

@alexr00 alexr00 left a comment

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 benibenj merged commit b416848 into main Aug 9, 2022
@benibenj benibenj deleted the benibenj/disabledTreeItem branch August 9, 2022 07:14
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.

None yet

3 participants