microsoft / microsoft/monaco-editor
monaco editor navigate to symbol from outside editor
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Description
monaco-editor version: v0.11.1
Language: CSS
Browser: Chrome
OS: Windows 10
I want to navigate to the symbol (go to symbol) from outside editor via api. I tried the below mentioned code.
this.editor.getAction('editor.action.quickOutline').run('body');
But it opens the list of symbols. But I want to navigate to the specific symbol like 'body', '.header'. Thanks.
https://stackoverflow.com/questions/49357807/monaco-editor-navigate-to-symbol-from-outside-editor
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 with the editor.action.quickOutline entry point and the documented Monaco Editor API behavior, using the supplied CSS example and the linked Stack Overflow question as context. Done means an external API call can navigate directly to a named symbol such as body or .header rather than only opening the symbol list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100