Skip to content

Commit 9f03f6a

Browse files
committed
Merge branch 'hotfix/0.20.1'
2 parents 7c29c9a + e112af7 commit 9f03f6a

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

Core/Sources/ChatTab/ChatGPT/ChatProvider.swift

+6-1
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 = ""

Core/Sources/SuggestionWidget/ChatWindowView.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ struct ChatTabBarButton: View {
127127
.font(.callout)
128128
.lineLimit(1)
129129
.frame(maxWidth: 120)
130+
.padding(.horizontal, 32)
131+
.contentShape(Rectangle())
130132
}
131133
.buttonStyle(PlainButtonStyle())
132-
.padding(.horizontal, 32)
133134

134135
.overlay(alignment: .leading) {
135136
Button(action: {

LICENSE

+1-1
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 <[email protected]>
1313

Version.xcconfig

+2-2
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

+12
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)