We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9662c0 commit e1c98f9Copy full SHA for e1c98f9
Tool/Sources/SuggestionBasic/EditorInformation.swift
@@ -23,6 +23,7 @@ public struct EditorInformation: Sendable {
23
public var lineAnnotations: [LineAnnotation]
24
25
public var selectedContent: String {
26
+ guard !lines.isEmpty else { return "" }
27
if let range = selections.first {
28
if range.isEmpty { return "" }
29
let startIndex = min(
0 commit comments