Skip to content

Nested files in VS 2015 show false TypeScript compilation errors in IDE #5727

Closed
@rwhepburn

Description

@rwhepburn

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:

Test.ts
L Test.spec.ts

When Test.spec.ts is nested under Test.ts and you open it in the VS IDE, errors are shown as follows:

2015-11-19 22_25_32-tsnestingissue - microsoft visual studio

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

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issueVisual StudioIntegration with Visual Studio

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions