From 2b19a559363fb75e9bdf0cb7b789d9077206917b Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Fri, 21 Jul 2023 11:09:54 +0800 Subject: [PATCH 1/5] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index d3e5da7b..cc41db9f 100644 --- a/LICENSE +++ b/LICENSE @@ -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 From 1ef635931e277ba61e5fe5956ba43fae7b8fcafc Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Fri, 21 Jul 2023 15:46:26 +0800 Subject: [PATCH 2/5] Change title to "Code Block" when the message starts with ``` --- Core/Sources/ChatTab/ChatGPT/ChatProvider.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/Sources/ChatTab/ChatGPT/ChatProvider.swift b/Core/Sources/ChatTab/ChatGPT/ChatProvider.swift index c0d9b31d..03768e98 100644 --- a/Core/Sources/ChatTab/ChatGPT/ChatProvider.swift +++ b/Core/Sources/ChatTab/ChatGPT/ChatProvider.swift @@ -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 = "" From 869357c84e404f4236e02426df3778a0aa9b1c22 Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Fri, 21 Jul 2023 15:46:38 +0800 Subject: [PATCH 3/5] Make the whole chat panel tab clickable --- Core/Sources/SuggestionWidget/ChatWindowView.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/Sources/SuggestionWidget/ChatWindowView.swift b/Core/Sources/SuggestionWidget/ChatWindowView.swift index 2afa2d23..22b0ada4 100644 --- a/Core/Sources/SuggestionWidget/ChatWindowView.swift +++ b/Core/Sources/SuggestionWidget/ChatWindowView.swift @@ -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: { From dfa52477809217ecf027baf14bccdcefd45f8673 Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Fri, 21 Jul 2023 15:48:18 +0800 Subject: [PATCH 4/5] Bump version to 0.20.1 --- Version.xcconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Version.xcconfig b/Version.xcconfig index 5ca4bada..bbe5b8e8 100644 --- a/Version.xcconfig +++ b/Version.xcconfig @@ -1,2 +1,2 @@ -APP_VERSION = 0.20.0 -APP_BUILD = 200 +APP_VERSION = 0.20.1 +APP_BUILD = 210 From e112af7deb7625a89496178b49f0f5dc88c2bc06 Mon Sep 17 00:00:00 2001 From: Shx Guo Date: Fri, 21 Jul 2023 16:04:36 +0800 Subject: [PATCH 5/5] Update appcast.xml --- appcast.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/appcast.xml b/appcast.xml index 33c2726f..f7a3c1e0 100644 --- a/appcast.xml +++ b/appcast.xml @@ -3,6 +3,18 @@ Copilot for Xcode + + 0.20.1 + Fri, 21 Jul 2023 16:00:42 +0800 + 210 + 0.20.1 + 12.0 + + https://github.com/intitni/CopilotForXcode/releases/tag/0.20.1 + + + + 0.20.0 Tue, 11 Jul 2023 13:32:57 +0800