Include the target symbol in search if location is propertyName or the import or export specifier dont specify "as" clause

Handles #7708
This commit is contained in:
Sheetal Nandi
2016-04-06 14:24:20 -07:00
parent ace2285ac2
commit 01ca100d16
2 changed files with 50 additions and 29 deletions

View File

@@ -0,0 +1,18 @@
/// <reference path='fourslash.ts' />
// @Filename: a.ts
////export var /*1*/a;
// @Filename: b.ts
////import { /*2*/a } from './a';
////export { /*3*/a };
goTo.file("a.ts");
goTo.marker("1");
goTo.file("b.ts");
goTo.marker("2");
verify.referencesCountIs(3);
goTo.marker("3");
verify.referencesCountIs(3);