-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Allow debugging TS code out of the box #87972
Comments
I'll add We have discussed bundling /cc @DanielRosenwasser and @gcrev93 for other thoughts on the TS first run experience |
|
@connor4312 Any ideas about making it simpler to debug TS files for beginners? If the user has |
@mjbvz we actually include typescript internally already in js-debug that we use for a lot of syntax tree work. So we could do it without even requiring an I like that idea as a way to get beginners using TS without a whole bunch of setup. I don't want that scenario for the intermediate to advanced users that have a proper build setup; maybe we have a |
Renaming this to focus on f5. Please split any other concerns to their own issues |
Merging into #124280 |
We're the best editor for TS, but you wouldn't know it from trying to start a new project.
.ts
file in an empty folder:Secretly, "Go to Project Configuration" is what I want, but again a newcomer wouldn't know that
We should have a "Typescript: Configure tsconfig.json" or "Typescript: Initialize Project" or similar to go straight to making the tsconfig.
"sourceMap": true
to the tsconfig.json. The file now runs.At the very least we should make the default tsconfig.json output source maps, as VS Code is crippled without them. It should also not come with the error about
checkJs
by default, either by removing it or addingallowJs
.We should also make the error message give some hints about how to fix the problem (Do you have source maps enabled for this project? Have you built the project? Are the files in the location specified in the launch.json, etc.), as suggesting a launch.json identical to the existing one is never the right solution.
Going beyond that, it would be nice to have a thought out flow for going from a .ts file to a proper VS Code experience.
The text was updated successfully, but these errors were encountered: