Give Navigate To the counts it sorts equal F# matches by - #20532
Draft
xperiandri wants to merge 5 commits into
Draft
xperiandri wants to merge 5 commits into
xperiandri wants to merge 5 commits into
Conversation
Contributor
✅ Release notes checked
Warning No PR link found in some release notes, please consider adding it.
|
T-Gro
requested changes
Sep 15, 2026
T-Gro
left a comment
Member
There was a problem hiding this comment.
🤖🕵️ Please shorten the description using this guidance. Focus on the problem and why the change is needed, in simplified technical English. Leave the implementation inventory to the Files tab and retain necessary caveats.
xperiandri
force-pushed
the
feature/navigate-to-sort-counts
branch
from
September 22, 2026 11:34
31e13c8 to
3a8db63
Compare
Navigate To orders matches that are otherwise equal by these counts for C# and VB. NavigableItem now carries them: every curried and tupled argument of the method a declaration compiles to, without the instance and without a solitary unit argument, and its explicitly declared type parameters. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Navigate To orders matches of the same kind by the folder distance to the file being edited, then by parameter and type parameter count and name, for C# and VB. Roslyn computes the same key for F# results once they carry the counts, which NavigableItem now records. Needs the FSharpNavigateToSearchResult constructor that takes the counts, from dotnet/roslyn#85280. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
xperiandri
force-pushed
the
feature/navigate-to-sort-counts
branch
from
September 26, 2026 01:01
3a8db63 to
27af195
Compare
Linking the note added a copy of it instead of editing the first, and `main` has since opened 11.0.200 for SDK 11.0.200, leaving 11.0.100 shipped. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Navigate To (Ctrl+T) orders matches of the same kind by a secondary sort: for C# and VB it puts a match in the file being edited first, then orders by how far the match's folder is from that file, by parameter and type parameter count, and by name. F# results carried no secondary sort, so a name declared both in the file being edited and elsewhere was listed in no particular order.
dotnet/roslyn#85280 has Roslyn compute that key for F# results too, from the active document it already knows, and takes the two counts on the result. #20531 records them on
NavigableItem; this passes them on. The ordering itself is Roslyn's and is tested there.Draft: this cannot build until dotnet/roslyn#85280 has flowed. Against a local build of dotnet/roslyn#85280 and #85281 together, the affected
FSharp.Editor.Testsclasses pass (145).Stacked on #20531: the first two commits are that PR.
🤖 Generated with Claude Code