~/talk

Own the Playground: Making Your Own Plugins for the TypeScript Playground

Talkat TSConf 2020 · on Friday, 2020-10-09· [typescript]
slides:none on file

A hands‑on walkthrough shows how to build a real TypeScript Playground plugin from the staging docs, using the sandbox.getText/setText API and the monaco layers to replace the editor formatter. It pulls in prettier-standalone and the TypeScript parser, bundles with rollup (output ≈ 3.5MB), registers via monaco.languages.register, and proves the new formatter runs in Chrome/Edge/Firefox (not Safari) by adding semicolons and working in the command palette.

AI-written summary · about

  1. 0:00Start
  2. 7:33Playground Plugins are the Core UI
  3. 8:05Official Plugins do all the boring stuff
  4. 8:56Playground API
  5. 9:13Sandbox API
  6. 9:48Monaco API
  7. 11:20monaco-typescript
  8. 12:20TypeScript VFS
  9. 13:14Plugin API
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.