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

Enable/disable implicit TS files references in Visual Studio #6834

Closed
usarskyy opened this issue Feb 2, 2016 · 5 comments
Closed

Enable/disable implicit TS files references in Visual Studio #6834

usarskyy opened this issue Feb 2, 2016 · 5 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@usarskyy
Copy link

usarskyy commented Feb 2, 2016

As a developer I'd like to be able to enable/disable implicit referencing of TS files in Visual Studio.

I described my issue on SO in more details.
Long story short: references are still required to generate correctly concatenated JS result file but because of implicit TS files referencing it is pretty hard to track whether references are correct.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 2, 2016

StackOverflow seems like the right place for questions. this repo is mainly for compiler/language bugs.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 2, 2016

My recommendation would be to add a tsconfig.json to your folder. see https://github.com/Microsoft/TypeScript/wiki/tsconfig.json

@mhegazy mhegazy closed this as completed Feb 2, 2016
@mhegazy mhegazy added the Question An issue which isn't directly actionable in code label Feb 2, 2016
@usarskyy
Copy link
Author

usarskyy commented Feb 2, 2016

@mhegazy Thank you for a quick answer!
I didn't ask the question, I wanted to request a feature for VS plugin. SO link was just FYI.

I read about tsconfig.json and "Virtual Projects" but nobody mentioned that it alters TS files reference behavior in Visual Studio.
The link that you provided describes how TS compiler will behave but VS plugin with InterlliSense is a separate story (if I understand it correctly). Anyway, I will check how tsconfig.json influences VS behavior and let you know soon.

@mhegazy
Copy link
Contributor

mhegazy commented Feb 2, 2016

Please give TS 1.8-beta a try. we have added support for tsconfig.json as main driver for project information, so things should be much more intuitive.

@usarskyy
Copy link
Author

usarskyy commented Feb 4, 2016

So, I tested tsconfig.json with TS 1.8-beta Visual Studio plugin and it worked as expected. Implicit references are not used anymore and each file must contain "reference" tags to required files. VS shows errors as expected.

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

2 participants