mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
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:
18
tests/cases/fourslash/renameImportAndExportInDiffFiles.ts
Normal file
18
tests/cases/fourslash/renameImportAndExportInDiffFiles.ts
Normal 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);
|
||||
Reference in New Issue
Block a user