Check for newline instead of an arbitrary length for showing hover hint (#204873)

This should show the hint less in scenarios where we don't need it.
This commit is contained in:
Tyler James Leonhardt
2024-02-10 00:26:23 +01:00
committed by GitHub
parent 2fa5c6538e
commit ca858e1da3
@@ -1283,7 +1283,7 @@ export class QuickInputHoverDelegate implements IHoverDelegate {
: typeof options.content === 'string'
? options.content
: options.content.value
).length > 20;
).includes('\n');
return this.hoverService.showHover({
...options,
persistence: {