@@ -57,6 +57,7 @@ public struct PromptToCode: ReducerProtocol {
5757 public var projectRootURL : URL
5858 public var documentURL : URL
5959 public var allCode : String
60+ public var allLines : [ String ]
6061 public var extraSystemPrompt : String ?
6162 public var generateDescriptionRequirement : Bool ?
6263 public var commandName : String ?
@@ -76,6 +77,7 @@ public struct PromptToCode: ReducerProtocol {
7677 projectRootURL: URL ,
7778 documentURL: URL ,
7879 allCode: String ,
80+ allLines: [ String ] ,
7981 commandName: String ? = nil ,
8082 description: String = " " ,
8183 isResponding: Bool = false ,
@@ -101,6 +103,7 @@ public struct PromptToCode: ReducerProtocol {
101103 self . projectRootURL = projectRootURL
102104 self . documentURL = documentURL
103105 self . allCode = allCode
106+ self . allLines = allLines
104107 self . extraSystemPrompt = extraSystemPrompt
105108 self . generateDescriptionRequirement = generateDescriptionRequirement
106109 self . isAttachedToSelectionRange = isAttachedToSelectionRange
@@ -165,7 +168,8 @@ public struct PromptToCode: ReducerProtocol {
165168 language: copiedState. language,
166169 documentURL: copiedState. documentURL,
167170 projectRootURL: copiedState. projectRootURL,
168- allCode: copiedState. allCode,
171+ content: copiedState. allCode,
172+ lines: copiedState. allLines,
169173 range: copiedState. selectionRange ?? . outOfScope
170174 ) ,
171175 isDetached: !copiedState. isAttachedToSelectionRange,
0 commit comments