-
Notifications
You must be signed in to change notification settings - Fork 199
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
Fix hover when it should separate multiple summaries #8005
Conversation
I expected the proper fix to be the thing, that was done in the legacy editor with the separation line, but this implementation is ok as a tactical fix. I believe, this separation line is just not available in the current state of LSP-based hovers, right? |
@DoctorKrolic Would be good to compare with the source code for the legacy editor. I think the separation line is not available. |
I believe, the legacy editor is not open source. Since your are a |
} | ||
else | ||
{ | ||
classifiedElementContainer.Add(new ContainerElement(ContainerElementStyle.Wrapped, new ClassifiedTextElement())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice if we could get a separation line back, but from a quick look at the legacy code I'd guess it may not be compatible with LSP. Also the accessibility on the old separator is TERRIBLE in dark mode. I've got perfect vision (when corrected) and I almost don't notice that it exists, so I feel like it's not a huge deal if we don't get the separator back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I feel like we should add tests to make sure we don't regress this in the future.
If the separation line is a popular ask, we can talk to the Editor team about adding support for it in the future. I don't think it should block this PR, though.
...src/Microsoft.AspNetCore.Razor.LanguageServer/Tooltip/DefaultVSLSPTagHelperTooltipFactory.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
Just gonna echo everyone else and say "tests" :D
Thanks for the reviews @ryanbrandenburg and @davidwengier. Some existing tooltip tests are failing and I am gonna fix them into this PR |
c313588
to
b419c9e
Compare
Fixed the two failing tests in Remaining test failures that might show up in CI would be flaky integration tests and unrelated to the change here. |
Fixes #6998
Summary of the changes
The actual behavior:
![IFzLurRJ0s](https://user-images.githubusercontent.com/70431552/196397622-74f7c06f-d422-4bb4-b4cc-c8866c5977cc.png)
The expected behavior:
![51VqKTRMin](https://user-images.githubusercontent.com/70431552/196397739-85c631f7-1c76-4915-98aa-58b0f78a88cb.png)
The fix:
![image](https://user-images.githubusercontent.com/5897654/206558400-078eb760-1abb-46d4-89d6-76e9111ae04e.png)
The changes in this PR helps to add a line of padding in between summaries.
It somehow seems like it is adding two new lines. So I need to figure our why this is happening.
Fixes: #6998