microsoft / microsoft/monaco-editor
[Feature Request] Expose tabFocusMode option so a default can be set
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
Hello! I'd like to be able to instantiate an editor with the tabFocusMode option set to true. Currently, the tabFocus mode is always initialized as false and can only be set via the toggleTabFocusMode action.
monaco.editor.create(document.getElementById('container'), {
value: "function hello() {\n\talert('Hello world!');\n}",
language: 'javascript',
tabFocusMode: true,
});
Additionally, the TabFocus mode state is currently a singleton, which means it will be shared between all monaco editors in the page. It would be nice if this mode could be configured separately per 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 at the monaco.editor.create options and the toggleTabFocusMode action described in the issue, then compare them with VS Code's commonEditorConfig.ts reference. The change is complete when tabFocusMode can be set during editor creation and its state is independent for each Monaco editor; no test file is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api, frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100