Skip to content

Make Compile On Save on by default for loose files #934

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

Closed
danquirk opened this issue Oct 22, 2014 · 2 comments
Closed

Make Compile On Save on by default for loose files #934

danquirk opened this issue Oct 22, 2014 · 2 comments
Labels
Declined The issue was declined as something which matches the TypeScript vision Suggestion An idea for TypeScript Visual Studio Integration with Visual Studio

Comments

@danquirk
Copy link
Member

Currently you need to go into Tools -> Options -> Text Editor -> TypeScript -> Project -> General in order to turn on Compile on Save for non-project contexts. It's not clear why we wouldn't just want this on by default there when we have it on by default for projects. We would need to pick a codegen target which we could do through inspection (if you are an external module use commonjs, else use amd). In any case, some number of people might have to change the codegen target from the default but that's fewer people than are currently having to go in and do the exact same set of clicks to turn it on in the first place.

@danquirk danquirk added Visual Studio Integration with Visual Studio Suggestion An idea for TypeScript labels Oct 22, 2014
@RyanCavanaugh
Copy link
Member

👍

@mhegazy mhegazy added the Declined The issue was declined as something which matches the TypeScript vision label Feb 20, 2016
@mhegazy
Copy link
Contributor

mhegazy commented Feb 20, 2016

with tsconfig.json being the main way of configuring projects, configuration for loose files seem to be less important. also starting with TS 1.8, you can have multiple tsconfig.json files for your projects, and "compileOnSave" property in tsconfig.json controls compile on save separately for each tsconfig.json file.

see : #5287
and https://github.com/Microsoft/TypeScript/wiki/tsconfig.json#compileonsave

@mhegazy mhegazy closed this as completed Feb 20, 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
Declined The issue was declined as something which matches the TypeScript vision Suggestion An idea for TypeScript Visual Studio Integration with Visual Studio
Projects
None yet
Development

No branches or pull requests

3 participants