Skip to content

Commit 336cab0

Browse files
Added CodeSuggestionEntry types to CESE
1 parent 8e29a0c commit 336cab0

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

CodeEdit.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CodeEdit/Features/Editor/AutoCompleteCoordinator.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,9 @@ class AutoCompleteCoordinator: TextViewCoordinator {
187187

188188
extension AutoCompleteCoordinator: SuggestionControllerDelegate {
189189
/// Takes a `CompletionItem` and modifies the text view with the new string
190-
func applyCompletionItem(item: CompletionItem) {
190+
func applyCompletionItem(item: CodeSuggestionEntry) {
191191
guard let cursorPos = textViewController?.cursorPositions.first,
192+
let item = item as? CompletionItem,
192193
let textView = textViewController?.textView else {
193194
return
194195
}
@@ -253,7 +254,7 @@ extension AutoCompleteCoordinator: SuggestionControllerDelegate {
253254
}
254255
}
255256

256-
func onItemSelect(item: LanguageServerProtocol.CompletionItem) { }
257+
func onItemSelect(item: CodeSuggestionEntry) { }
257258

258259
func onClose() {
259260
currentNode = nil

CodeEdit/Features/Settings/Views/ExternalLink.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ struct ExternalLink<Content: View, Icon: View>: View {
5555
@ViewBuilder content: @escaping () -> Content,
5656
title: String? = nil,
5757
subtitle: String? = nil,
58-
@ViewBuilder icon: @escaping() -> Icon = { EmptyView() }
58+
@ViewBuilder icon: @escaping () -> Icon = { EmptyView() }
5959
) {
6060
self.showInFinder = showInFinder
6161
self.title = title

0 commit comments

Comments
 (0)