We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e00a49d commit 3135931Copy full SHA for 3135931
Sources/CodeEditSourceEditor/Controller/TextViewController+Lifecycle.swift
@@ -261,7 +261,12 @@ extension TextViewController {
261
}
262
263
private func handleShowCompletions(_ event: NSEvent) -> NSEvent? {
264
- if let completionDelegate = self.completionDelegate, let cursorPosition = cursorPositions.first {
+ if let completionDelegate = self.completionDelegate,
265
+ let cursorPosition = cursorPositions.first {
266
+ if SuggestionController.shared.isVisible {
267
+ SuggestionController.shared.close()
268
+ return event
269
+ }
270
SuggestionController.shared.showCompletions(
271
textView: self,
272
delegate: completionDelegate,
0 commit comments