Skip to content

Add local Monaco playground - #249616

Closed
Remco Haszing (remcohaszing) wants to merge 1 commit into
microsoft:mainfrom
remcohaszing:monaco-local-playground
Closed

Remco Haszing (remcohaszing) wants to merge 1 commit into
microsoft:mainfrom
remcohaszing:monaco-local-playground

Conversation

@remcohaszing

Copy link
Copy Markdown
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 Henning Dieterichs (@hediet)

Remco Haszing (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 Henning Dieterichs (hediet) added this to the June 2025 milestone Jun 2, 2025
@remcohaszing
Remco Haszing (remcohaszing) force-pushed the monaco-local-playground branch 2 times, most recently from c84ab2b to ae8556b Compare July 11, 2025 14:31
This adds a small playground which renders Monaco editor. This is useful
for local development.

To start it, run:

```sh
npx vite playground
```
Henning Dieterichs (hediet) pushed a commit to remcohaszing/vscode that referenced this pull request Sep 2, 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.
@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Dec 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants