microsoft / microsoft/monaco-editor
[Feature Request] Close peek problem/definition window programmatically
Nobody has claimed this yet.
- 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
When setting markers on a model and then calling editor.action.marker.next to open the peek window on the first marker, there's no way to close it other than the user clicking the X button or pressing Escape.
I'd like to be able to close the peek window via the API so that it can automatically be closed on certain events (e.g. once the model changes).
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the marker flow from editor.action.marker.next and the API surface for the peek problem/definition window. Determine how the window is opened and how model changes are handled, then expose a supported way to close it programmatically and verify that it closes after the requested event.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100