Skip to content

Commit d1a4604

Browse files
Replaced CompletionItem type
1 parent 93de69a commit d1a4604

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

Sources/CodeEditSourceEditor/CodeSuggestion/SuggestionController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
//
77

88
import AppKit
9-
import LanguageServerProtocol
109

1110
/// Represents an item that can be displayed in the code suggestion view
1211
public protocol CodeSuggestionEntry {
@@ -25,7 +24,7 @@ public final class SuggestionController: NSWindowController {
2524
}
2625

2726
/// The items to be displayed in the window
28-
public var items: [CompletionItem] = [] {
27+
public var items: [CodeSuggestionEntry] = [] {
2928
didSet { onItemsUpdated() }
3029
}
3130

Sources/CodeEditSourceEditor/CodeSuggestion/SuggestionControllerDelegate.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
// Created by Abe Malla on 12/26/24.
66
//
77

8-
import LanguageServerProtocol
9-
108
public protocol SuggestionControllerDelegate: AnyObject {
11-
func applyCompletionItem(item: CompletionItem)
9+
func applyCompletionItem(item: CodeSuggestionEntry)
1210
func onClose()
1311
func onCompletion()
1412
func onCursorMove()
15-
func onItemSelect(item: CompletionItem)
13+
func onItemSelect(item: CodeSuggestionEntry)
1614
}

0 commit comments

Comments
 (0)