Skip to content

Commit 7fa80a3

Browse files
committed
Merge tag '0.25.0' into develop
2 parents a00dd49 + 3a08d0e commit 7fa80a3

8 files changed

Lines changed: 42 additions & 43 deletions

File tree

Core/Package.resolved

Lines changed: 0 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Core/Package.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,15 @@ let isProIncluded: Bool = {
3838
return false
3939
}
4040
do {
41-
let content = String(
41+
if let content = String(
4242
data: try Data(contentsOf: confURL),
4343
encoding: .utf8
44-
)
45-
print("")
46-
return content?.hasPrefix("YES") ?? false
44+
) {
45+
if content.hasPrefix("YES") {
46+
return true
47+
}
48+
}
49+
return false
4750
} catch {
4851
return false
4952
}

Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct GUI: ReducerProtocol {
6565
}
6666

6767
@Dependency(\.chatTabPool) var chatTabPool: ChatTabPool
68-
68+
6969
public enum Debounce: Hashable {
7070
case updateChatTabOrder
7171
}
@@ -224,11 +224,13 @@ struct GUI: ReducerProtocol {
224224
guard old.map(\.id) != new.map(\.id) else {
225225
return .none
226226
}
227+
#if canImport(ChatTabPersistent)
227228
return .run { send in
228-
#if canImport(ChatTabPersistent)
229229
await send(.persistent(.chatOrderChanged))
230-
#endif
231230
}.debounce(id: Debounce.updateChatTabOrder, for: 1, scheduler: DispatchQueue.main)
231+
#else
232+
return .none
233+
#endif
232234
}
233235
}
234236
}

Pro

Submodule Pro updated from 02010b2 to 72fd941

TestPlan.xctestplan

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
"name" : "PromptToCodeServiceTests"
5151
}
5252
},
53-
{
54-
"target" : {
55-
"containerPath" : "container:Core",
56-
"identifier" : "GitHubCopilotServiceTests",
57-
"name" : "GitHubCopilotServiceTests"
58-
}
59-
},
6053
{
6154
"target" : {
6255
"containerPath" : "container:Tool",
@@ -99,13 +92,6 @@
9992
"name" : "SharedUIComponentsTests"
10093
}
10194
},
102-
{
103-
"target" : {
104-
"containerPath" : "container:Core",
105-
"identifier" : "ActiveDocumentChatContextCollectorTests",
106-
"name" : "ActiveDocumentChatContextCollectorTests"
107-
}
108-
},
10995
{
11096
"target" : {
11197
"containerPath" : "container:Tool",
@@ -126,6 +112,20 @@
126112
"identifier" : "KeychainTests",
127113
"name" : "KeychainTests"
128114
}
115+
},
116+
{
117+
"target" : {
118+
"containerPath" : "container:Tool",
119+
"identifier" : "ActiveDocumentChatContextCollectorTests",
120+
"name" : "ActiveDocumentChatContextCollectorTests"
121+
}
122+
},
123+
{
124+
"target" : {
125+
"containerPath" : "container:Tool",
126+
"identifier" : "GitHubCopilotServiceTests",
127+
"name" : "GitHubCopilotServiceTests"
128+
}
129129
}
130130
],
131131
"version" : 1

Tool/Sources/OpenAIService/Configuration/UserPreferenceChatGPTConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public struct UserPreferenceChatGPTConfiguration: ChatGPTConfiguration {
3333
}
3434

3535
public var minimumReplyTokens: Int {
36-
300
36+
maxTokens / 5
3737
}
3838

3939
public var runFunctionsAutomatically: Bool {

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION = 0.24.1
2-
APP_BUILD = 251
1+
APP_VERSION = 0.25.0
2+
APP_BUILD = 261
33

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.25.0</title>
8+
<pubDate>Wed, 11 Oct 2023 23:08:08 +0800</pubDate>
9+
<sparkle:version>261</sparkle:version>
10+
<sparkle:shortVersionString>0.25.0</sparkle:shortVersionString>
11+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
12+
<sparkle:releaseNotesLink>
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.25.0
14+
</sparkle:releaseNotesLink>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.25.0/Copilot.for.Xcode.app.zip" length="35224211" type="application/octet-stream" sparkle:edSignature="0Yug7VJ31/I4rZe8BO5OC8GvjzzeqZ8GiEnQal3m0dJJT9WudApOv/182hI3REw6beIYTryftu1dGTGWo0nICA=="/>
16+
</item>
17+
618
<item>
719
<title>0.24.1</title>
820
<pubDate>Fri, 29 Sep 2023 14:35:35 +0800</pubDate>

0 commit comments

Comments
 (0)