Use ValueOption to look up a reference's definition item - #20534
Conversation
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
❗ Release notes requiredYou can open this PR in browser to add release notes: open in github.dev
|
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
🔍 Tooling Safety Check — Affects-Design-Time
|
ValueOption to look up a reference's definition item
T-Gro
left a comment
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.
|
This is already short enough, no? |
|
Apologies, my wording wasn't clear - in this case it's not shortness. |
Description
FSharpFindUsagesService.onSymbolFoundlooks up which definition item a reference belongs to withArray.tryFindandOption. This repo's convention (FSharp.instructions.md) isvoptionin new and touched code;Common/Extensions.fsalready hasArray.tryFindVfor this exact case.Split out of #20533's review, where this line sat unchanged in the diff context.
Checklist
🤖 Generated with Claude Code