Skip to content

It is unclear to me how tsconfig.json is used in Visual Studio 2015 #3983

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
ghost opened this issue Jul 22, 2015 · 6 comments
Closed

It is unclear to me how tsconfig.json is used in Visual Studio 2015 #3983

ghost opened this issue Jul 22, 2015 · 6 comments
Assignees
Labels
Bug A bug in TypeScript

Comments

@ghost
Copy link

ghost commented Jul 22, 2015

It is unclear to me how tsconfig.json is used in Visual Studio 2015. And what happens when the TypeScript panel in the Project Properties conflicts? Does switching to use tsconfig.json kill features like Save-On-Compile?

@mhegazy mhegazy added the Bug A bug in TypeScript label Jul 22, 2015
@mhegazy
Copy link
Contributor

mhegazy commented Jul 22, 2015

Sorry for the confusion.. we are working on cleaning this up. An easy way to think of this, is a project file (.csprox, .jsproj, .vbproj or .njsproj) and a tsconfig.json are mutually exclusive. if you have a project file the tsconfig is ignored. if you want to use a tsconfig file, do not use a project.

In the future, i would see us adding an option in the project property pages to allow you to use tsconfig or not, and if so, the project property pages will all be grayed out..

@mhegazy mhegazy added this to the TypeScript 1.6 milestone Jul 22, 2015
@paulvanbrenk
Copy link
Contributor

tsconfig.json is only supported in Asp.net 5 and Cordova projects currently. Since neither has a Project Properties for TypeScript they won't conflict, and tsconfig.json will take precedence.

To enable Compiler on Save, you need to enable Compile on Save for files that are not part of a project, in the Tools/Options/Text Editor/TypeScript.

We plan to have more comprehensive support in 1.6.

@paulvanbrenk
Copy link
Contributor

Closing this as we're using #4161 to track this.

@ltlombardi
Copy link

Jan 2018, this is still a issue. Every single official documentation and blog talks about tsconfig.json file, and nothing about how to configure the same in the project.
For example:
https://blogs.msdn.microsoft.com/typescript/2016/06/15/the-future-of-declaration-files/

@mhegazy
Copy link
Contributor

mhegazy commented Jan 16, 2018

@ltlombardi i am not sure i understand your issue. this issue has been closed over 3 years ago. Please file a new issue, and include enough context for use to investigate

@ltlombardi
Copy link

@mhegazy thank you. ;-) I'll do that

@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript
Projects
None yet
Development

No branches or pull requests

3 participants