microsoft / TypeScript

TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
https://www.typescriptlang.org
Apache License 2.0
100.94k stars 12.48k forks source link

Better tsconfig.json generation #48597

Open isidorn opened 2 years ago

isidorn commented 2 years ago

The current generation of tsconfig.json is a manual and undiscoverable process inside VS Code. I suggest the following improvements:

Step 2: we can consider to make the Problems welcome view contributable. So we can add a button in the problems view to generate tsconfig.json if no errors have been detected in the workspace.

With these improvements I believe we will make it much easier for the users to create a new typescript workspace.

MartinJohns commented 2 years ago

The current generation of tsconfig.json is a manual and undiscoverable process.

https://www.typescriptlang.org/docs/handbook/compiler-options.html

image

isidorn commented 2 years ago

@MartinJohns thanks for pointing. I meant inside VS Code. There is no UI for this. I have clarified my initial comment. Also the --init command does not take into account the current workspace content I believe. And we should make this smarter, based on what the workspace already has.