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 2dc9f6f commit f15c15dCopy full SHA for f15c15d
src/fsharp/vs/ServiceAssemblyContent.fs
@@ -467,9 +467,9 @@ module internal Entity =
467
| _ ->
468
partiallyQualifiedName
469
|> Array.heads
470
- // the last part must be unresolved, otherwise we show false positive suggestions like
+ // long ident must contain an unresolved part, otherwise we show false positive suggestions like
471
// "open System" for `let _ = System.DateTime.Naaaw`. Here only "Naaw" is unresolved.
472
- |> Array.filter (fun x -> not (x.[x.Length - 1].Resolved))
+ |> Array.filter (fun x -> x |> Array.exists (fun x -> not x.Resolved))
473
|> Array.choose (fun parts ->
474
let parts = parts |> Array.map (fun x -> x.Ident)
475
if not (candidate |> Array.endsWith parts) then None
0 commit comments