Skip to content

Add local Monaco playground #249616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

remcohaszing
Copy link
Contributor

This adds a small playground which renders Monaco editor. This is useful for local development, but I also understand if this is not the exact route the VSCode team wants to take with this.

To start it, run:

npx vite playground

Feel free to accept / reject / cherry-pick changes from this.

cc @hediet

remcohaszing added a commit to remcohaszing/vscode that referenced this pull request May 28, 2025
Monaco Editor uses some static properties that reference the class they
are defined in. This is equivalent to `this`. Monaco Editor also uses
decorators. TypeScript compiles this in a way that works (with some
small boilerplate code). In Vite however, this compiles to broken code.

This change replaces self-references via in static properties via their
identifier with `this`.

The changes were cherry-picked from microsoft#249616.
@hediet hediet added this to the June 2025 milestone Jun 2, 2025
@hediet hediet modified the milestones: June 2025, July 2025 Jul 1, 2025
@remcohaszing remcohaszing force-pushed the monaco-local-playground branch 2 times, most recently from c84ab2b to ae8556b Compare July 11, 2025 14:31
@remcohaszing remcohaszing force-pushed the monaco-local-playground branch from ae8556b to 690ceaa Compare July 15, 2025 11:49
@remcohaszing remcohaszing force-pushed the monaco-local-playground branch from 690ceaa to fe3de30 Compare July 25, 2025 07:12
@hediet hediet modified the milestones: July 2025, August 2025 Jul 31, 2025
This adds a small playground which renders Monaco editor. This is useful
for local development.

To start it, run:

```sh
npx vite playground
```
@remcohaszing remcohaszing force-pushed the monaco-local-playground branch from fe3de30 to 3064ddd Compare August 8, 2025 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants