File tree Expand file tree Collapse file tree 3 files changed +22
-6
lines changed
Core/Sources/PromptToCodeService Expand file tree Collapse file tree 3 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ final class OpenAIPromptToCodeAPI: PromptToCodeAPI {
3131 if code. isEmpty {
3232 return """
3333 You are a senior programer in writing code in \( language. rawValue) .
34+
35+ File url: \( fileURL)
36+
37+ \( extraSystemPrompt ?? " " )
3438
3539 Please write a piece of code that meets my requirements. The indentation should be \(
3640 indentRule
@@ -39,22 +43,22 @@ final class OpenAIPromptToCodeAPI: PromptToCodeAPI {
3943 Please reply to me start with the code block, followed by a clear and concise description in 1-3 sentences about what you did \(
4044 textLanguage
4145 ) .
42-
43- \( extraSystemPrompt ?? " " )
4446 """
4547 } else {
4648 return """
4749 # Description
4850
4951 You are a senior programer in writing code in \( language. rawValue) .
52+
53+ File url: \( fileURL)
54+
55+ \( extraSystemPrompt ?? " " )
5056
5157 Please mutate the following code fragment with my requirements. Keep the original indentation. Do not add comments unless told to.
5258
5359 Please reply to me start with the code block followed by a clear and concise description about what you did in 1-3 sentences \(
5460 textLanguage
5561 ) .
56-
57- \( extraSystemPrompt ?? " " )
5862
5963 # Code
6064
Original file line number Diff line number Diff line change 1- APP_VERSION = 0.13.0
2- APP_BUILD = 101
1+ APP_VERSION = 0.13.1
2+ APP_BUILD = 105
Original file line number Diff line number Diff line change 33 <channel >
44 <title >Copilot for Xcode</title >
55
6+ <item >
7+ <title >0.13.1</title >
8+ <pubDate >Sat, 22 Apr 2023 23:07:44 +0800</pubDate >
9+ <sparkle : version >105</sparkle : version >
10+ <sparkle : shortVersionString >0.13.1</sparkle : shortVersionString >
11+ <sparkle : minimumSystemVersion >12.0</sparkle : minimumSystemVersion >
12+ <sparkle : releaseNotesLink >
13+ https://github.com/intitni/CopilotForXcode/releases/tag/0.13.1
14+ </sparkle : releaseNotesLink >
15+ <enclosure url =" https://github.com/intitni/CopilotForXcode/releases/download/0.13.1/Copilot.for.Xcode.app.zip" length =" 20093578" type =" application/octet-stream" sparkle : edSignature =" j0vvvbjpMVwlwICjysIG5SGLm4k4CMfL38reZF5S/u2pUj8GAzxzyLDbD62GKNUHl1m0pBxQURKkPcs1i5/PCQ==" />
16+ </item >
17+
618 <item >
719 <title >0.13.0</title >
820 <pubDate >Sat, 22 Apr 2023 12:20:16 +0800</pubDate >
You can’t perform that action at this time.
0 commit comments