monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

[Feature Request] Make styles of linesDecorationsTooltip as glyphMarginHoverMessage tooltip

Open Disimasa opened this issue 2 months ago • 0 comments

Context

  • [x] This issue is not a bug report. (please use a different template for reporting a bug)
  • [x] This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

When creating decoration with linesDecorationsClassName and linesDecorationsTooltip, tooltip created by build-in html title property. However when creating decorations with glyphMarginClassName and glyphMarginHoverMessage, tooltip has styles inherited from the editor (on the screenshot):

Image

I think it'd be great to have the same tooltip interface. I'd suggest to add linesDecorationsHoverMessage: IMarkdownString | IMarkdownString[] field to decoration options to create the same tooltip as with glyphMarginHoverMessage

Monaco Editor Playground Link

No response

Monaco Editor Playground Code


Disimasa avatar Oct 02 '25 16:10 Disimasa