More thoroughly test navigateTo (#25239)

* More thoroughly test navigateTo

* Fix #25233 and #25237

* Update API (#24966)
This commit is contained in:
Andy
2018-07-02 19:25:27 -07:00
committed by GitHub
parent c3b81b3e10
commit efc1b7df08
45 changed files with 658 additions and 510 deletions

View File

@@ -124,8 +124,6 @@ namespace ts {
return undefined;
}
candidateContainers = candidateContainers || [];
// -1 because the last part was checked against the name, and only the rest
// of the parts are checked against the container.
if (dotSeparatedSegments.length - 1 > candidateContainers.length) {