-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Visual Studio: tsconfig.json file hidden from Solution Explorer is not considered by IntelliSense #11815
Comments
why not switch to use tsconfig.json all together if i may ask? |
There are a couple of reasons here:
|
tsconfig.json is not anti-MSBuild. the build targets looks for them and builds them normally just like projects that do not have tsconfig.json. so what properties specifically are you using the tsconfig.json for? typeRoots? |
I'm not sure exactly which ones, but we're using "baseUrl", "rootDir", "paths", and "typeRoots". |
I see. thanks. So given that TS 2.1 has support for configuration inheritance, is this still an issue? |
I am pretty sure we will continue to generate a .tsconfig unless the MSBuild properties fully support everything .tsconfig supports. It would be nice to be able to hide that from the project in Solution Explorer. |
@trevorsg Can you please tell are if this items is still actual for you? Current implementation uses |
@vladima It's not a blocking issue or anything, just an inconvenience. If it's an expensive fix I wouldn't be offended by a "won't fix" :) |
looks like costs of fixing it properly outweighs the benefits so closing it as "won't fix" |
TypeScript Version: 2.0.3
One can hide Items in Solution Explorer by using the <Visible>false</Visible> or <InProject>false</InProject> metadata on the Item.
Expected behavior:
As long as the tsconfig file is in the project (hidden in VS or not), its settings should be applied for syntax highlighting, IntelliSense, etc.
Actual behavior:
When <Visible> or <InProject> is applied to the tsconfig Item, its settings do not take effect.
Scenario/Justification
Our build requires some options that are only available in tsconfig.json (i.e. they don't have an MSBuild property counterpart). Therefore, we generate the tsconfig as part of the build and ensure it is part of the project. We want to hide it from Solution Explorer so engineers don't mistakenly edit it.
The text was updated successfully, but these errors were encountered: