Closed Kakadu closed 7 years ago
I'm afraid that it is only semi-solution because be default only first line is shown in the tooltip and in the error list. We need to press an arrow manually to show the rest of error message. Can we automatically expand tooltips?
That's the reason I previously removed all whitespace from error messages. The tooltips are create by linter, so I can't change that.
Maybe @steelbrain knows right workaround?
@Kakadu is correct, linter supports multi-line-messages, you just have to separate the lines with \n
in your message.
That's what I'm doing now, but I think @Kadaku doesn't like that only the first line is shown before clicking on the arrow.
It will be great if tooltip will autoexpand after hanging for a couple of seconds... @steelbrain, is it possible?
Pieter, after release of linter 2.0 can we do something with error tooltips? At the moment it shows only the word Warning
in a tooltip and I need to use mouse to see the whole text. Also CSS is pretty bad, IMHO.
I know it's not ideal, but I changed it to preserve indentation in multiline messages.
Also I see expanded text of the error message in a dark color but your variant is better. Any idea why it can happen?
The colors are chosen by your theme. You can change them in your local styles.less
file:
#linter-tooltip pre {
background-color: rgba(0, 0, 0, 0.1);
}
@314eter @Kakadu Check out https://atom.io/packages/linter-ui-plus ( upcoming rewrite of the UI of linter ). There are no tooltips (yet) but the extended description is shown nicely in the panel.
@mehcode Looks good. Please continue!
When merlin reports an error (which takes more then 1 line) all line breaks are gone in the tooltip (which is wrong) and also are gone from all issues list (which is probably right). Maybe we need to replace
\\n
to\n
in the incoming merlin messages?This is a sample merlin multiline answer straced by me: