We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1492e70 commit 7cd0fb2Copy full SHA for 7cd0fb2
vsintegration/src/FSharp.Editor/Navigation/GoToDefinition.fs
@@ -252,7 +252,12 @@ type internal GoToDefinition(metadataAsSource: FSharpMetadataAsSourceService) =
252
|> liftAsync
253
254
let symbolUses = checkFileResults.GetUsesOfSymbolInFile targetSymbolUse.Symbol
255
- let! implSymbol = symbolUses |> Array.tryHead
+
256
+ let! implSymbol =
257
+ symbolUses
258
+ |> Array.sortByDescending (fun x -> x.IsFromDefinition)
259
+ |> Array.tryHead
260
261
return implSymbol.Range
262
}
263
0 commit comments