Page MenuHomePhabricator

When users click a symbol in Differential to jump to the definition, include path/line context
ClosedPublic

Authored by epriestley on Jan 26 2018, 2:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 24, 11:50 PM
Unknown Object (File)
Sat, Apr 20, 7:04 AM
Unknown Object (File)
Fri, Apr 19, 7:11 PM
Unknown Object (File)
Fri, Apr 19, 12:38 PM
Unknown Object (File)
Sun, Apr 14, 7:55 AM
Unknown Object (File)
Thu, Apr 11, 8:04 AM
Unknown Object (File)
Tue, Apr 2, 8:41 AM
Unknown Object (File)
Sun, Mar 31, 5:36 PM
Subscribers
None

Details

Summary

Ref T13047. In some reasonable cases, knowing the path and line number where a symbol appears is useful in ranking or filtering the set of matching symbols.

Giving symbol sources more information can't hurt, and it's generally free for us to include this context since we just need to grab it out of the document and pass it along.

We can't always get this data (for example, if a user types s idx into global search, we have no clue) but this is similar to other types of context which are only available sometimes (like which repository a symbol appears in).

Test Plan

Command-clicked some symbols in 1-up (unified) and 2-up (side-by-side) diff views with symbol indexes configured. Got accurate path and line information in the URI I was redirected to.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable