Skip to content

Commit

Permalink
Include fields in definition results dependencies calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPenner committed Sep 12, 2023
1 parent 0fa7fbc commit 1fc3ded
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion unison-share-api/src/Unison/Server/Backend.hs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ import Unison.ConstructorReference (GConstructorReference (..))
import Unison.ConstructorReference qualified as ConstructorReference
import Unison.ConstructorType qualified as CT
import Unison.DataDeclaration qualified as DD
import Unison.DataDeclaration.Dependencies qualified as DD
import Unison.HashQualified qualified as HQ
import Unison.HashQualified' qualified as HQ'
import Unison.Hashing.V2.Convert qualified as Hashing
Expand Down Expand Up @@ -834,7 +835,7 @@ definitionResultsDependencies (DefinitionResults {termResults, typeResults}) =
typeDeps =
typeResults
& ifoldMap \typeRef ddObj ->
foldMap (DD.labeledDeclDependenciesIncludingSelf typeRef) ddObj
foldMap (DD.labeledDeclDependenciesIncludingSelfAndFieldAccessors typeRef) ddObj
in termDeps <> typeDeps <> topLevelTerms <> topLevelTypes

expandShortCausalHash :: ShortCausalHash -> Backend Sqlite.Transaction CausalHash
Expand Down

0 comments on commit 1fc3ded

Please sign in to comment.