File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Service/SuggestionCommandHandler Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import Foundation
22
33public struct CustomCommand : Codable {
4+ /// The custom command feature.
5+ ///
6+ /// Keep everything optional so nothing will break when the format changes.
47 public enum Feature : Codable {
5- case promptToCode( prompt: String , continuousMode: Bool )
6- case chatWithSelection( prompt: String )
8+ case promptToCode( prompt: String ? , continuousMode: Bool ? )
9+ case chatWithSelection( prompt: String ? )
710 case customChat( systemPrompt: String ? , prompt: String ? )
811 }
9-
12+
1013 public var name : String
1114 public var feature : Feature
1215}
Original file line number Diff line number Diff line change @@ -294,7 +294,7 @@ extension WindowBaseCommandHandler {
294294 try await presentPromptToCode (
295295 editor: editor,
296296 prompt: prompt,
297- isContinuous: continuousMode
297+ isContinuous: continuousMode ?? false
298298 )
299299 }
300300 }
You can’t perform that action at this time.
0 commit comments