Skip to content

Commit a723e2d

Browse files
committed
Merge tag '0.32.3.beta' into develop
2 parents 028d331 + 52ae306 commit a723e2d

File tree

5 files changed

+30
-7
lines changed

5 files changed

+30
-7
lines changed

Core/Sources/ChatGPTChatTab/ChatPanel.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,11 @@ struct ChatPanelMessages: View {
219219
EmptyView()
220220
.onChange(of: viewStore.state.isReceivingMessage) { isReceiving in
221221
if isReceiving {
222-
pinnedToBottom = true
223-
scrollToBottom()
222+
Task {
223+
pinnedToBottom = true
224+
await Task.yield()
225+
scrollToBottom()
226+
}
224227
}
225228
}
226229
.onChange(of: viewStore.state.lastMessage) { _ in

Pro

Submodule Pro updated from 8b4803d to a5c9fda

Tool/Sources/ChatContextCollectors/ActiveDocumentChatContextCollector/ActiveDocumentChatContextCollector.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,17 @@ public final class ActiveDocumentChatContextCollector: ChatContextCollector {
4646
var functions = [any ChatGPTFunction]()
4747

4848
if !isSensitive {
49+
let contextLineRange: String = {
50+
if let range = context.focusedContext?.codeRange {
51+
return " from \(range.start.line + 1) to \(range.end.line + 1)"
52+
}
53+
return ""
54+
}()
55+
4956
var functionPrompt = """
5057
ONLY call it when one of the following conditions are satisfied:
51-
- the user ask you about specific line from the latest message, \
52-
which is not included in the focused range.
58+
- the user explicitly ask you about specific line of code, \
59+
but the line was NOT in the focused range \(contextLineRange).
5360
"""
5461

5562
if let annotations = context.focusedContext?.otherLineAnnotations,

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION = 0.32.2
2-
APP_BUILD = 363
1+
APP_VERSION = 0.32.3
2+
APP_BUILD = 366
33

appcast.xml

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

6+
<item>
7+
<title>0.32.3</title>
8+
<pubDate>Mon, 29 Apr 2024 22:44:05 +0800</pubDate>
9+
<sparkle:version>366</sparkle:version>
10+
<sparkle:channel>beta</sparkle:channel>
11+
<sparkle:shortVersionString>0.32.3</sparkle:shortVersionString>
12+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
13+
<sparkle:releaseNotesLink>
14+
https://github.com/intitni/CopilotForXcode/releases/tag/0.32.3.beta
15+
</sparkle:releaseNotesLink>
16+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.32.3.beta/Copilot.for.Xcode.app.zip" length="41418029" type="application/octet-stream" sparkle:edSignature="IkQcMIEeImDH8OoqTmfehonuJZHfchW0lWU1vN4xMqXMmwHz7wdjXO7rTz6LoC2LNlY0KfTfOzenAJEXNoGDAA=="/>
17+
</item>
18+
619
<item>
720
<title>0.32.2</title>
821
<pubDate>Sat, 20 Apr 2024 20:31:36 +0800</pubDate>

0 commit comments

Comments
 (0)