File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Sources/CodeEditSourceEditor/SourceEditor Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,9 @@ public struct SourceEditor: NSViewControllerRepresentable {
103103 cursorPositions: state. cursorPositions ?? [ ] ,
104104 highlightProviders: context. coordinator. highlightProviders,
105105 undoManager: undoManager,
106- coordinators: coordinators
106+ coordinators: coordinators,
107+ completionDelegate: completionDelegate,
108+ jumpToDefinitionDelegate: jumpToDefinitionDelegate
107109 )
108110 switch text {
109111 case . binding( let binding) :
@@ -118,9 +120,6 @@ public struct SourceEditor: NSViewControllerRepresentable {
118120 controller. setCursorPositions ( state. cursorPositions ?? [ ] )
119121 }
120122
121- controller. completionDelegate = completionDelegate
122- controller. jumpToDefinitionModel? . delegate = jumpToDefinitionDelegate
123-
124123 context. coordinator. setController ( controller)
125124 return controller
126125 }
You can’t perform that action at this time.
0 commit comments