Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Core/Sources/ChatTab/ChatGPT/ChatProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@ public final class ChatProvider: ObservableObject {
.last?
.text else { return defaultTitle }
if lastMessageText.isEmpty { return defaultTitle }
return lastMessageText
let trimmed = lastMessageText
.trimmingCharacters(in: .punctuationCharacters)
.trimmingCharacters(in: .whitespacesAndNewlines)
if trimmed.starts(with: "```") {
return "Code Block"
} else {
return trimmed
}
}

public var extraSystemPrompt = ""
Expand Down
3 changes: 2 additions & 1 deletion Core/Sources/SuggestionWidget/ChatWindowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ struct ChatTabBarButton: View {
.font(.callout)
.lineLimit(1)
.frame(maxWidth: 120)
.padding(.horizontal, 32)
.contentShape(Rectangle())
}
.buttonStyle(PlainButtonStyle())
.padding(.horizontal, 32)

.overlay(alignment: .leading) {
Button(action: {
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ a. may be subject to a more permissive open-source license in the future.
b. can be used for commercial purposes.

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

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

Expand Down
4 changes: 2 additions & 2 deletions Version.xcconfig
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APP_VERSION = 0.20.0
APP_BUILD = 200
APP_VERSION = 0.20.1
APP_BUILD = 210
12 changes: 12 additions & 0 deletions appcast.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@
<channel>
<title>Copilot for Xcode</title>

<item>
<title>0.20.1</title>
<pubDate>Fri, 21 Jul 2023 16:00:42 +0800</pubDate>
<sparkle:version>210</sparkle:version>
<sparkle:shortVersionString>0.20.1</sparkle:shortVersionString>
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
<sparkle:releaseNotesLink>
https://github.com/intitni/CopilotForXcode/releases/tag/0.20.1
</sparkle:releaseNotesLink>
<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=="/>
</item>

<item>
<title>0.20.0</title>
<pubDate>Tue, 11 Jul 2023 13:32:57 +0800</pubDate>
Expand Down