microsoft / microsoft/vscode-js-debug

Transpile TypeScript in the REPL

Open
#182 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request upstream
Dominant language
TypeScript
Stars
2k
Forks
373
Avg merge
1d 9m
Merged PRs (30d)
6

Description

We already use TypeScript for walking the tree and, for instance, determining whether we need to wrap async/await. It would be a simple task to have it transpile the code down as well. For that we only need to know the target and language (i.e. jsx, or not). The target could safely default to ES6 nowadays, and be configurable with an option. I think we can determine the language programatically without needing extra config.

cc @eamodio

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the REPL implementation and the existing TypeScript tree-walking code that determines async/await wrapping. Check how the REPL could identify JSX versus non-JSX input and where an ES6 target or configurable target would be supplied; done means REPL code is transpiled with the selected target and language.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.