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

Feature Request: Maximum Message Length #100

Closed
mayeths opened this issue Sep 2, 2021 · 2 comments
Closed

Feature Request: Maximum Message Length #100

mayeths opened this issue Sep 2, 2021 · 2 comments

Comments

@mayeths
Copy link

mayeths commented Sep 2, 2021

Related issues: #47 #81

There's no way to know the width of the editor, but how about adding some settings like "errorLens.maxWidth": "400px"?

I used width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; to shrink the width of the first message, and it looks better than the second one.
image

@usernamehw
Copy link
Owner

"errorLens.messageMaxChars": 40,

@mayeths
Copy link
Author

mayeths commented Sep 2, 2021

Great!

I implement it in this way because other settings (border-radius) use css too, and length will be miscounted if the string contains some unicode characters like emoji. (or just ignore this scenario)

Anyway, thanks for the quick reply

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

No branches or pull requests

2 participants