Skip to content

Implicit Referencing - opting in and opting out #1066

Closed
@johnnyreilly

Description

@johnnyreilly

Hi,

I've a question about Visual Studio's Implicit Referencing. I've looked around in vain for a definitive answer and so I thought it might make sense to raise the question here.

Previously, all TypeScript files in a project had to reference each other explicitly. With 0.9.1, they now implicitly reference all other TypeScript files in the project.

Since 0.9.1 I've used this feature pretty happily and purged my files of the mass of /// <reference path= entries.

I've recently been wondering if there are any hidden "gotchas" to using /// <reference path= in a Visual Studio context? My understanding is that if there are any /// <reference path= instances in a file then implicit referencing goes out the window and only the specified references are used. Is that correct? (So use of any references in the head of a ts file is effectively the same as opting that file out of Implicit Referencing for Visual Studio.)

@mhegazy - this might be a question for you? Similar ground was covered here.

Metadata

Metadata

Assignees

Labels

CanonicalThis issue contains a lengthy and complete description of a particular problem, solution, or designQuestionAn issue which isn't directly actionable in code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions