Nested files in VS 2015 show false TypeScript compilation errors in IDE #5727
Labels
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Visual Studio
Integration with Visual Studio
Milestone
We just upgraded to from VS 2013 Ultimate with TypeScript 1.6 to VS 2015 Enterprise with TypeScript 1.6 and now we are seeing an issue with nested files in our solution where the IDE is reporting errors despite the project building without errors.
We use nested files (using Mads Kristensen's File Nesting VS extension v2.2.31) to nest our test specs under the related .ts file to test. For example:
When
Test.spec.ts
is nested underTest.ts
and you open it in the VS IDE, errors are shown as follows:Un-nesting the file resolves the problem and the TypeScript tooling is able to resolve the
describe(...)
function and errors are no longer displayed in the IDE.A repro project can be found here:
https://github.com/rwhepburn/TsNestingIssue
Thanks,
Richard
The text was updated successfully, but these errors were encountered: