I am developing a new driver to be used with SQLTools and I noticed that when an error message is too long it is not formatted correctly and prevents the error from being read.
When observing, I noticed that this happens because the component uses a pre element to display the messages, which by default does not actually wrap the messages. See reference.
However, I understand the use of pre, but I believe it would also be valid to have a line break when messages exceed the maximum width of the view used.
To Reproduce
Steps to reproduce the behavior:
Execute any query whose error has a long description
Expected behavior
Show the error message with line breaks if necessary so that it can be read
Screenshots
How the error screen is displayed if the pre element does not have the style to perform the line break
What could the error screen be like if the pre element is configured to perform line wrapping
Desktop (please complete the following information):
Describe the bug
I am developing a new driver to be used with SQLTools and I noticed that when an error message is too long it is not formatted correctly and prevents the error from being read.
When observing, I noticed that this happens because the component uses a
pre
element to display the messages, which by default does not actually wrap the messages. See reference.However, I understand the use of
pre
, but I believe it would also be valid to have a line break when messages exceed the maximum width of the view used.To Reproduce Steps to reproduce the behavior:
Expected behavior
Show the error message with line breaks if necessary so that it can be read
Screenshots
How the error screen is displayed if the![image](https://github.com/mtxr/vscode-sqltools/assets/94701032/74f0263a-432e-4390-be87-24ab31b8fbf1)
pre
element does not have the style to perform the line breakWhat could the error screen be like if the![image](https://github.com/mtxr/vscode-sqltools/assets/94701032/42d236bf-6d0b-417e-a898-2b4356011f08)
pre
element is configured to perform line wrappingDesktop (please complete the following information):
Additional context