Skip to content

Commit f14ed34

Browse files
committed
Ensure CodeFileView is Reloaded
1 parent c32ac0b commit f14ed34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CodeEdit/Features/Editor/Views/CodeFileView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,8 @@ struct CodeFileView: View {
171171
undoManager: undoRegistration.manager(forFile: editorInstance.file),
172172
coordinators: textViewCoordinators
173173
)
174-
.id(codeFile.fileURL)
174+
// This view needs to refresh when the codefile changes. The file URL is too stable.
175+
.id(ObjectIdentifier(codeFile))
175176
.background {
176177
if colorScheme == .dark {
177178
EffectView(.underPageBackground)

0 commit comments

Comments
 (0)