Skip to content

Commit b2199bb

Browse files
committed
Clarify each parameter of CopilotCompletion
1 parent 5c1adde commit b2199bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Core/Sources/CopilotModel/CopilotCompletion.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@ public struct CopilotCompletion: Codable, Equatable {
1515
self.displayText = displayText
1616
}
1717

18+
/// The new code to be inserted and the original code on the first line.
1819
public var text: String
20+
/// The position of the cursor after the completion.
1921
public var position: CursorPosition
22+
/// An id.
2023
public var uuid: String
24+
/// The range of the original code that should be replaced.
2125
public var range: CursorRange
26+
/// The new code to be inserted.
2227
public var displayText: String
2328
}

0 commit comments

Comments
 (0)