microsoft/TypeScript-Website

TypeScript Playground Plugin ideas

orta opened this issue · 7 comments

orta commented
  • An LSP-ish Playground where you can make see the response to specific calls
  • An English explainer which explains a complex TS type
  • Convert TS dts -> Flow interfaces(flowgen)
  • Run tutorials in the playground against live code as a learning tool
  • AST Viewer
  • ts-query runner
  • codemod runner
  • Highlight TS vs JS (or type vs value) parts of some code code
  • Show all used types in a file
  • Show dts files in the current workspace
  • Edit an ambient dts file

Can Playground plugin API configure monaco editor’s key-bindings ? I want vim key-bindings.

orta commented

Yep, sandbox.editor gives you access to the current monaco - you might be able to just use the code from https://github.com/brijeshb42/monaco-vim directly via AMD

orta commented

Sourcemap preview would makea a great plugin

I made a plugin to apply Vim keybindings https://github.com/Quramy/ts-playground-plugin-vim 🎉

orta commented

Ace!

orta commented

#520

also:

sourceFile.locals is a private variable that gives you a list of all the symbols at the local root of the
source file, which can be a starting point for showing what types are defined in the current file

Hello! As per #2804, we are automatically closing all open issues. Please see #2804 for a description of what issues and PRs can be accepted going forward.