Skip to content

Commit 5c9ed4c

Browse files
committed
Merge tag '0.20.1' into develop
2 parents 3359d1d + 9f03f6a commit 5c9ed4c

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

Core/Sources/ChatGPTChatTab/ChatProvider.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ public final class ChatProvider: ObservableObject {
1717
.last?
1818
.text else { return defaultTitle }
1919
if lastMessageText.isEmpty { return defaultTitle }
20-
return lastMessageText
20+
let trimmed = lastMessageText
2121
.trimmingCharacters(in: .punctuationCharacters)
2222
.trimmingCharacters(in: .whitespacesAndNewlines)
23+
if trimmed.starts(with: "```") {
24+
return "Code Block"
25+
} else {
26+
return trimmed
27+
}
2328
}
2429

2530
public var extraSystemPrompt = ""

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ a. may be subject to a more permissive open-source license in the future.
77
b. can be used for commercial purposes.
88

99
With the GPLv3 and these supplementary agreements, anyone can freely use, modify, and distribute the project, provided that:
10-
- For commercial use of this project or forks of this project, please contact us for authorization.
10+
- For commercial use or commercial forks of this project, please contact us for authorization.
1111

1212
Copyright (c) 2023 Shangxin Guo <int123c@gmail.com>
1313

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
APP_VERSION = 0.20.0
2-
APP_BUILD = 200
1+
APP_VERSION = 0.20.1
2+
APP_BUILD = 210

appcast.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
<channel>
44
<title>Copilot for Xcode</title>
55

6+
<item>
7+
<title>0.20.1</title>
8+
<pubDate>Fri, 21 Jul 2023 16:00:42 +0800</pubDate>
9+
<sparkle:version>210</sparkle:version>
10+
<sparkle:shortVersionString>0.20.1</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.20.1
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.20.1/Copilot.for.Xcode.app.zip" length="25114525" type="application/octet-stream" sparkle:edSignature="qGO+GzIPqOvFNk5NhFvo+aB/23qN6edG872/26nXjxLdBwsW2poPbIOf8A3V1zmAu+EZw6kkhke6agGqaWbkBA=="/>
16+
</item>
17+
618
<item>
719
<title>0.20.0</title>
820
<pubDate>Tue, 11 Jul 2023 13:32:57 +0800</pubDate>

0 commit comments

Comments
 (0)