-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
The current generation of tsconfig.json is a manual and undiscoverable process inside VS Code. I suggest the following improvements:
- We should introduce a command "Create
tsconfig.json", this command should try to autodetect as much as possible from the workspace, and if needed ask the user some questions via QuickPick API. This command would in the end generatetsconfig.json, similar to how VS Code tries to help with the creation oflaunch.json - "Create tsconfig.json" should be contributed to the command palette and in the explorer context menu (if tsconfig.json is not present)
- if we want to market some attributes in
tsconfig.jsonwe should write them in those files even if they have a default value so users can discover them - The commands should be contributed to the Explorer Context Menu - if
tsconfig.jsoncan not be found in the workspace. - If there is a typescript file open, and there is no
tsconfig.jsonin the repository we should offer the user to automatically to create atsconfig.json. I think a notification in this case is acceptable.
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsRescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestoneSuggestionAn idea for TypeScriptAn idea for TypeScript