vscode-lean icon indicating copy to clipboard operation
vscode-lean copied to clipboard

Display errors above docstrings in tooltip popups?

Open kim-em opened this issue 5 years ago • 2 comments

I often investigate tactic errors by using the tooltip.

Unfortunately in VSCode the tooltip will display both the docstring for the tactic, and then below that the error message. Especially as the docstrings become better and better (and longer and longer!) this makes the tooltip less useful (it's hard to scroll inside them without losing them).

Could we switch the order, and put the error first?

kim-em avatar Mar 27 '20 21:03 kim-em

So this is trickier than I thought it would be. The error messages are provided by "Diagnostics" in diagnostics.ts and the docstrings / types, etc. are provided by the "HoverProvider" in hover.ts. I could well be missing something, but I couldn't find any way to switch the ordering of these two sources in the hover popup.

bryangingechen avatar Mar 28 '20 00:03 bryangingechen

Looks like this behaviour is coming from VSCode 🤔 :

microsoft/vscode#73120

alexpeattie avatar Aug 25 '20 09:08 alexpeattie