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

MenuDisplay enum, fixes #354 #363

Merged
merged 2 commits into from
Mar 9, 2024
Merged

Conversation

aalhitennf
Copy link
Contributor

Menu items are currently Option<MenuDisplay> and separators are considered as None. dyn_stack canno't hash? the Nones properly which causes missing menu items. Switching to enum and giving it something as id fixes this.

@jrmoulton
Copy link
Contributor

diff looks large but the change looks good to me dzhou121

@aalhitennf
Copy link
Contributor Author

diff looks large but the change looks good to me dzhou121

yep menu items are created with this huge chunk of code inside if statement, now match instead, shifting it by few line/ident or two which makes it look larger than what it actually does

@dzhou121 dzhou121 merged commit 79a3c1d into lapce:main Mar 9, 2024
7 checks passed
@aalhitennf aalhitennf deleted the menu_dyn_stack_fix branch March 9, 2024 08:04
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.

None yet

3 participants