We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fd6f76 commit 67bfe54Copy full SHA for 67bfe54
1 file changed
Core/Sources/Service/Workspace.swift
@@ -19,6 +19,10 @@ final class Filespace {
19
var suggestionIndex: Int = 0
20
var currentSuggestionLineRange: ClosedRange<Int>?
21
var suggestionSourceSnapshot: Snapshot = .init(linesHash: -1, cursorPosition: .outOfScope)
22
+ var presentingSuggestion: CopilotCompletion? {
23
+ guard suggestions.endIndex > suggestionIndex, suggestionIndex >= 0 else { return nil }
24
+ return suggestions[suggestionIndex]
25
+ }
26
27
private(set) var lastSuggestionUpdateTime: Date = Environment.now()
28
var isExpired: Bool {
0 commit comments