Skip to content

Commit

Permalink
Update lightbulbs when suggestions are accepted and deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
terlan98 committed Dec 17, 2023
1 parent e2d36d7 commit 3a2dd5c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,13 @@ public struct UXCodeTextViewRepresentable: UXViewRepresentable {
textView.string = editorBindings.source.wrappedValue
}

textView.feedbackSuggestions = editorBindings.feedbackSuggestions
textView.updateLightBulbs()
} else if editorBindings.feedbackSuggestions.count != textView.lightBulbs.count {
textView.feedbackSuggestions = editorBindings.feedbackSuggestions
textView.updateLightBulbs()
}

textView.setNeedsDisplay()
textView.pencilOnly = editorBindings.pencilOnly.wrappedValue
textView.dragSelection = self.editorBindings.dragSelection?.wrappedValue
Expand Down

0 comments on commit 3a2dd5c

Please sign in to comment.