Skip to content

Commit

Permalink
Re-instate line that shouldn't have been deleted, and maintain correc…
Browse files Browse the repository at this point in the history
…t QOS
  • Loading branch information
nighthawk committed Apr 29, 2023
1 parent d32d4ce commit 00bd8b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/RunestoneSwiftUI/TextEditor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public class TextEditorCoordinator: ObservableObject {
func configure(text: Binding<String>, theme: Theme, language: TreeSitterLanguage?, completion: @escaping (TextViewState) -> Void) {
guard self.text?.wrappedValue != text.wrappedValue else { return }

DispatchQueue.global(qos: .background).async {
self.text = text

DispatchQueue.global(qos: .userInteractive).async {
let state: TextViewState
if let language = language {
state = TextViewState(text: text.wrappedValue, theme: theme, language: language)
Expand Down

0 comments on commit 00bd8b5

Please sign in to comment.