microsoft / microsoft/monaco-editor

[Feature Request] Basic theme manipulation functions

Open
#3,973 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request themes
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

There are 2 theme-related functions right now: defineTheme, setTheme.

I'd like to be able to manipulate themes with more control. I can keep track of my own themes, but ideally monaco would expose a way to get the current theme, list defined themes and undefine those that aren't needed anymore:

  • undefineTheme(string)
  • listThemes(): string[]
  • getCurrentTheme(): string
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

Start by examining the existing public theme APIs, defineTheme and setTheme, and trace how themes are stored and selected. The work is done when callers can undefine a theme, list defined themes, and retrieve the current theme through the requested functions, with behavior consistent with the existing APIs.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.