File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Sources/CodeEditSourceEditor/CodeSuggestion Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 6
6
//
7
7
8
8
import AppKit
9
- import LanguageServerProtocol
10
9
11
10
/// Represents an item that can be displayed in the code suggestion view
12
11
public protocol CodeSuggestionEntry {
@@ -25,7 +24,7 @@ public final class SuggestionController: NSWindowController {
25
24
}
26
25
27
26
/// The items to be displayed in the window
28
- public var items : [ CompletionItem ] = [ ] {
27
+ public var items : [ CodeSuggestionEntry ] = [ ] {
29
28
didSet { onItemsUpdated ( ) }
30
29
}
31
30
Original file line number Diff line number Diff line change 5
5
// Created by Abe Malla on 12/26/24.
6
6
//
7
7
8
- import LanguageServerProtocol
9
-
10
8
public protocol SuggestionControllerDelegate : AnyObject {
11
- func applyCompletionItem( item: CompletionItem )
9
+ func applyCompletionItem( item: CodeSuggestionEntry )
12
10
func onClose( )
13
11
func onCompletion( )
14
12
func onCursorMove( )
15
- func onItemSelect( item: CompletionItem )
13
+ func onItemSelect( item: CodeSuggestionEntry )
16
14
}
You can’t perform that action at this time.
0 commit comments