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

Add hide fields toolbar button to outline view (fix #1073) #1075

Merged
merged 1 commit into from
Aug 30, 2024

Conversation

travkin79
Copy link
Contributor

Hi @rubenporras,
I'm working on the "hide fields" toolbar entry in the outline view and it works already.

Nevertheless, I think, I need to improve the implementation. I'd like to improve how the states of the menu entry "Hide..." -> "Field" and the toolbar entry "Hide Fields" are synchronized in the outline view. Currently I let the Hide Fields handler register for preference changes and do update the command's state. Do you have a better solution for that?

Besides, I observe some strange behavior in the outline view. As soon as the outline looses focus (by clicking into the CDT LSP editor in my case), the sort and hide fields buttons disappear. I observed that already before preparing my PR with the sort toolbar entry. I'm not sure if this is going wrong in LSP4E or in CDT LSP. Can you observe the same issue?

Another minor issue is that the toolbar buttons icon look different to the icon used in the menu entry "Hide..." > "Field" (and other places). But I could live with that for now.

Thanks and best regards.

@rubenporras
Copy link
Contributor

@travkin79 , shall I merge it now once the checks pass?

@rubenporras rubenporras merged commit e00186d into eclipse:main Aug 30, 2024
6 checks passed
@travkin79
Copy link
Contributor Author

Thank you @rubenporras

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants