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

improvement: trim hover body #5694

Merged
merged 2 commits into from
Oct 4, 2023
Merged

Conversation

kasiaMarek
Copy link
Contributor

resolves: #5679

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

LGTM! Just one small comment

@@ -2,6 +2,8 @@ package scala.meta.internal.pc

object HoverMarkup {

private val MaxHoverBodyLength = 50000
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that based on some VS Code standard? If so could you add a link to where you found it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't find any information about this in docs. It's based solely on experience, that the limit is around 100000.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a comment about that then? That it's based on the experiment as of day x.y.z

@kasiaMarek kasiaMarek merged commit 664dcce into scalameta:main Oct 4, 2023
20 of 24 checks passed
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.

On large worksheet output, the hover text is formatted wrong
3 participants