microsoft / microsoft/monaco-editor

[Feature Request] Ability to remove the limit on marker lines and hovers

Open
#4,744 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

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

I've a read-only diff editor with renderValidationDecorations set manually to on. This is because markers

  1. don't add any width to existing text
  2. can be hovered over
  3. can be copied from

Making them very useful for showing extra info for what I'm using Monaco for: a difference checker between an extant bytecode file and the bytecode generated by some compiled source code.

Image

With large bytecode files, as seen in the image, I quickly hit the 500 marker limit, disabling the marker underline or the ability to hover to see a quick description of the info I want.

#2042 previously asked about this, but renderValidationDecorations has been added since that issue, so I'd like to revisit discussion in this area. Perhaps there is a better mechanism to achieve what I'm looking for, but Hover Providers don't decorate the text and always interpret the strings given to them as markdown rather than verbatim.

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or playground entry points are named. Start by reviewing issue #2042 and the current behavior of renderValidationDecorations, then trace how marker limits affect decoration and hover behavior; done should define and verify an agreed way to handle more than 500 markers without losing the requested information.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.