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

This adds a small playground which renders Monaco editor. This is useful
for local development.

To start it, run:

```sh
npx vite playground
```
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
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