microsoft / microsoft/monaco-editor

All editors on a page share the same theme

Open
#1,289 3 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm trying to add multi monaco instances on the same page.

However the latter instance will affect previous instances' settings, the theme/tokenizer is always updated to the last instance's settings.

How to separate their individual config?

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 file or test is named. Start by reproducing the issue with multiple Monaco editor instances and trace how each instance applies its theme and tokenizer settings. Done means changing one instance's configuration no longer affects the others, with coverage for separate configurations.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
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.