We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 420191e commit fe8e82aCopy full SHA for fe8e82a
1 file changed
Core/Sources/SuggestionWidget/SuggestionWidgetController.swift
@@ -289,11 +289,14 @@ public final class SuggestionWidgetController: NSObject {
289
systemColorSchemeChangeObserver.onChange = {
290
updateColorScheme()
291
}
292
- }
293
294
- Task { @MainActor in
295
- XcodeInspector.shared.$completionPanel.sink { [weak self] _ in
+ XcodeInspector.shared.$completionPanel.sink { [weak self] newValue in
296
Task { @MainActor in
+ if newValue == nil {
+ // so that the buttons on the suggestion panel could be clicked
297
+ // before the completion panel updates the location of the suggestion panel
298
+ try await Task.sleep(nanoseconds: 200_000_000)
299
+ }
300
self?.updateWindowLocation()
301
302
}.store(in: &cancellable)
0 commit comments