Skip to content
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

Add Tools\option setting for --target and --noImplicitAny for loose files #1223

Closed
mhegazy opened this issue Nov 20, 2014 · 2 comments
Closed
Labels
Suggestion An idea for TypeScript Visual Studio Integration with Visual Studio

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Nov 20, 2014

as mentioned in #1066, users who want to opt out of VS project systems, need a way to specify some additional configuration options. currently you can control compile on save, module, but not target or --noImplicitAny, --declaration, --sourceMap.

@RyanCavanaugh RyanCavanaugh added Visual Studio Integration with Visual Studio Suggestion An idea for TypeScript labels Nov 26, 2014
@johnnyreilly
Copy link

Thanks for opening this @mhegazy.

I'd like to see the "TypeScript Build" project properties tab in VS expose another option which allowed the user to select between "project files" and "loose files". Something like this: (excuse the horrendous graphic - I'm no artist):

mockup

I'm aware that "loose files" aren't strictly project settings and so you could argue it's a bad fit having both on here.

I guess the alternative is continuing the current approach of splitting the loose file and project settings between the VS TypeScript options tab (below) and the project settings tab respectively. Perhaps that makes more logical sense.

screenshot 2014-12-09 12 20 06

Whether separated (as now) or brought together I think it'd be good if Visual Studio used some of the ideas that other IDE's with filewatchers have. Take the "Watcher Settings" of WebStorm for example:

screenshot 2014-12-09 09 52 36

I'm mindful of the new "command line first" ethos which appears to be coming out of ASP.Net vNext (a separate team I'm aware). I think it's generally a good idea to avoid "hiding the magic". So even if there is tooling building up the TSC compiler options (as at present) I think it would be good to present to the user what the TSC command line looks like anyway (even if only in a read-only state)

To take that a bit further, I wonder if it would be possible to allow the user to directly control the tsc arguments in Visual Studio? This would allow control to the user over how TSC was used. Not everyone would want this so maybe this would only become enabled for editing if the user opts in / checks a checkbox. There was discussion in #1232 about specific compiler flags and this could be useful if that situation arose.

I can imagine this being useful in both the "loose files" and the "project files" contexts.

Finally (and for bonus points) would it be possible to specify different TSC compilers for loose files in this way as well? I'm guess that would be analogous to the TypeScriptToolsVersion project option? (The fact my TypeScript 1.3 compiler is married to TypeScriptToolsVersion 1.1 makes me question this a little.)

@mhegazy
Copy link
Contributor Author

mhegazy commented Feb 22, 2016

Target and modules are already supported. the other ones should be supported using tsconfig.json.

@mhegazy mhegazy closed this as completed Feb 22, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Suggestion An idea for TypeScript Visual Studio Integration with Visual Studio
Projects
None yet
Development

No branches or pull requests

3 participants