Skip to content

Commit f12d7c1

Browse files
committed
Merge tag 'fix-tests' into develop
2 parents 4963f78 + 919a60c commit f12d7c1

5 files changed

Lines changed: 18 additions & 11 deletions

File tree

Core/Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ let package = Package(
161161
.product(name: "SuggestionModel", package: "Tool"),
162162
.product(name: "Environment", package: "Tool"),
163163
.product(name: "OpenAIService", package: "Tool"),
164+
.product(name: "AppMonitoring", package: "Tool"),
164165
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
165166
]
166167
),

Core/Sources/HostApp/FeatureSettings/ChatSettingsView.swift

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,11 @@ struct ChatSettingsView: View {
5050
if !settings.chatModels
5151
.contains(where: { $0.id == settings.defaultChatFeatureChatModelId })
5252
{
53-
Text(settings.chatModels.first?.name ?? "No Model Found")
54-
.tag(settings.defaultChatFeatureChatModelId)
53+
Text(
54+
(settings.chatModels.first?.name).map { "\($0) (Default)" }
55+
?? "No Model Found"
56+
)
57+
.tag(settings.defaultChatFeatureChatModelId)
5558
}
5659

5760
ForEach(settings.chatModels, id: \.id) { chatModel in
@@ -66,8 +69,11 @@ struct ChatSettingsView: View {
6669
if !settings.embeddingModels
6770
.contains(where: { $0.id == settings.defaultChatFeatureEmbeddingModelId })
6871
{
69-
Text(settings.embeddingModels.first?.name ?? "No Model Found")
70-
.tag(settings.defaultChatFeatureEmbeddingModelId)
72+
Text(
73+
(settings.embeddingModels.first?.name).map { "\($0) (Default)" }
74+
?? "No Model Found"
75+
)
76+
.tag(settings.defaultChatFeatureEmbeddingModelId)
7177
}
7278

7379
ForEach(settings.embeddingModels, id: \.id) { embeddingModel in

Core/Sources/SuggestionInjector/SuggestionInjector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public struct SuggestionInjector {
239239

240240
// remove the first adjacent placeholder in suffix which looks like `<#Hello#>`
241241

242-
let regex = try! NSRegularExpression(pattern: "\\s+<#.*?#>")
242+
let regex = try! NSRegularExpression(pattern: "\\s*?<#.*?#>")
243243

244244
if let firstPlaceholderRange = regex.firstMatch(
245245
in: suffix,

Version.xcconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION = 0.23.0
1+
APP_VERSION = 0.23.1
22
APP_BUILD = 240
33

appcast.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<title>Copilot for Xcode</title>
55

66
<item>
7-
<title>0.23.0</title>
8-
<pubDate>Wed, 06 Sep 2023 17:58:47 +0800</pubDate>
7+
<title>0.23.1</title>
8+
<pubDate>Wed, 06 Sep 2023 21:08:26 +0800</pubDate>
99
<sparkle:version>240</sparkle:version>
10-
<sparkle:shortVersionString>0.23.0</sparkle:shortVersionString>
10+
<sparkle:shortVersionString>0.23.1</sparkle:shortVersionString>
1111
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
1212
<sparkle:releaseNotesLink>
13-
https://github.com/intitni/CopilotForXcode/releases/tag/0.23.0
13+
https://github.com/intitni/CopilotForXcode/releases/tag/0.23.1
1414
</sparkle:releaseNotesLink>
15-
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.23.0/Copilot.for.Xcode.app.zip" length="32300100" type="application/octet-stream" sparkle:edSignature="EydvmwTRuw3oNFY2hcsH1qbjFF4Kbn6fHIp+HMVa30if50ajmTYZiMM0nutx4EM/l7SCX2LDoy2aok9SjhoPBg=="/>
15+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.23.1/Copilot.for.Xcode.app.zip" length="32300658" type="application/octet-stream" sparkle:edSignature="WrAqqWy1qQ7j662ix9+o2wQxnE1BnkNMS75V9AKLNeTec4rHuzfB5uVioRgHdr4DZZ66VVMsJJAL7AVG4is+DQ=="/>
1616
</item>
1717

1818
<item>

0 commit comments

Comments
 (0)