Skip to content

Commit

Permalink
clear latestTypecheckedFile on update
Browse files Browse the repository at this point in the history
fixes #3424
  • Loading branch information
aryairani committed Aug 9, 2024
1 parent 01cae7e commit c4f8ffc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions unison-cli/src/Unison/Codebase/Editor/HandleInput/Update2.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ module Unison.Codebase.Editor.HandleInput.Update2
)
where

import Control.Lens ((.=))
import Control.Monad.RWS (ask)
import Data.Bifoldable (bifoldMap)
import Data.List qualified as List
Expand Down Expand Up @@ -148,6 +149,7 @@ handleUpdate2 = do
(\typeName -> Right (Map.lookup typeName declNameLookup.declToConstructors))
secondTuf
Cli.stepAt "update" (path, Branch.batchUpdates branchUpdates)
#latestTypecheckedFile .= Nothing

Cli.respond Output.Success

Expand Down
2 changes: 1 addition & 1 deletion unison-src/transcripts/fix3424.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ scratch/main> update
scratch/main> run a
"Hello, World!"
"Hello, Unison!"
```
The result should be "Hello, Unison\!".
Expand Down

0 comments on commit c4f8ffc

Please sign in to comment.