You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update GetDeclarationListSymbols to add getAllEntities
* Don't group types with the same display name as function overloads.
Now that we can include all entities for top level completions,
the grouping function can incorrectly group types with the same
display name as function overloads. Use the compiled name instead
as this includes the namespace.
* Get logical name from ExnCase
* Make getAllEntities optional
Also renamed getAllSymbols to getAllEntities everywhere for
consistency
match GetDeclItemsForNamesAtPosition(ctok, parseResultsOpt, Some partialName.QualifyingIdents, Some partialName.PartialIdent, partialName.LastDotPos, line, lineStr, partialName.EndColumn +1, ResolveTypeNamesToCtors, ResolveOverloads.Yes,getAllSymbols, hasTextChangedSinceLastTypecheck)with
937
+
match GetDeclItemsForNamesAtPosition(ctok, parseResultsOpt, Some partialName.QualifyingIdents, Some partialName.PartialIdent, partialName.LastDotPos, line, lineStr, partialName.EndColumn +1, ResolveTypeNamesToCtors, ResolveOverloads.Yes,getAllEntities, hasTextChangedSinceLastTypecheck)with
938
938
| None -> FSharpDeclarationListInfo.Empty
939
939
| Some (items, denv, ctx, m)->
940
940
letitems=if isInterfaceFile then items |> List.filter (fun x -> IsValidSignatureFileItem x.Item)else items
@@ -950,11 +950,11 @@ type TypeCheckInfo
950
950
FSharpDeclarationListInfo.Error msg)
951
951
952
952
/// Get the symbols for auto-complete items at a location
match GetDeclItemsForNamesAtPosition(ctok, parseResultsOpt, Some partialName.QualifyingIdents, Some partialName.PartialIdent, partialName.LastDotPos, line, lineStr, partialName.EndColumn +1, ResolveTypeNamesToCtors, ResolveOverloads.Yes,(fun()->[]), hasTextChangedSinceLastTypecheck)with
957
+
match GetDeclItemsForNamesAtPosition(ctok, parseResultsOpt, Some partialName.QualifyingIdents, Some partialName.PartialIdent, partialName.LastDotPos, line, lineStr, partialName.EndColumn +1, ResolveTypeNamesToCtors, ResolveOverloads.Yes,getAllEntities, hasTextChangedSinceLastTypecheck)with
958
958
| None -> List.Empty
959
959
| Some (items, denv,_, m)->
960
960
letitems=if isInterfaceFile then items |> List.filter (fun x -> IsValidSignatureFileItem x.Item)else items
@@ -966,7 +966,7 @@ type TypeCheckInfo
966
966
// - show types with fewer generic parameters first
967
967
// - show types before over other related items - they usually have very useful XmlDocs
0 commit comments