Skip to content

Commit 2467d56

Browse files
committed
Merge tag '0.33.3' into develop
2 parents f9385e1 + 4d83f2b commit 2467d56

7 files changed

Lines changed: 30 additions & 19 deletions

File tree

CommunicationBridge/main.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
import AppKit
12
import Foundation
23

4+
class AppDelegate: NSObject, NSApplicationDelegate {}
5+
36
let bundleIdentifierBase = Bundle(url: Bundle.main.bundleURL.appendingPathComponent(
47
"CopilotForXcodeExtensionService.app"
58
))?.object(forInfoDictionaryKey: "BUNDLE_IDENTIFIER_BASE") as? String ?? "com.intii.CopilotForXcode"
69

710
let serviceIdentifier = bundleIdentifierBase + ".CommunicationBridge"
8-
11+
let appDelegate = AppDelegate()
912
let delegate = ServiceDelegate()
1013
let listener = NSXPCListener(machServiceName: serviceIdentifier)
1114
listener.delegate = delegate
1215
listener.resume()
13-
RunLoop.main.run()
16+
let app = NSApplication.shared
17+
app.delegate = appDelegate
18+
app.run()
1419

Core/Sources/SuggestionWidget/ChatWindowView.swift

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,13 @@ struct ChatTabBar: View {
202202
)
203203

204204
} else {
205-
EmptyView()
205+
ChatTabBarButton(
206+
store: store,
207+
info: info,
208+
content: { Text("Not Found") },
209+
icon: { Image(systemName: "questionmark.diamond") },
210+
isSelected: info.id == selectedTabId
211+
)
206212
}
207213
}
208214
}
@@ -369,7 +375,7 @@ struct ChatTabContainer: View {
369375
anchor: .topLeading
370376
)
371377
} else {
372-
EmptyView()
378+
Text("404 Not Found")
373379
}
374380
}
375381
}

Tool/Sources/ChatTab/ChatTab.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ open class BaseChatTab {
6767

6868
public init(store: StoreOf<ChatTabItem>) {
6969
chatTabStore = store
70+
self.id = store.id
71+
self.title = store.title
7072

7173
Task { @MainActor in
7274
storeObserver.observe { [weak self] in

Tool/Sources/XPCShared/XPCCommunicationBridge.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public enum XPCCommunicationBridgeError: Swift.Error, LocalizedError {
1010
case .failedToCreateXPCConnection:
1111
return "Failed to create XPC connection."
1212
case let .xpcServiceError(error):
13-
return "XPC Service error: \(error.localizedDescription)"
13+
return "Connection to communication bridge error: \(error.localizedDescription)"
1414
}
1515
}
1616
}

Tool/Sources/XPCShared/XPCExtensionService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public enum XPCExtensionServiceError: Swift.Error, LocalizedError {
1313
case .failedToCreateXPCConnection:
1414
return "Failed to create XPC connection."
1515
case let .xpcServiceError(error):
16-
return "XPC Service error: \(error.localizedDescription)"
16+
return "Connection to extension service error: \(error.localizedDescription)"
1717
}
1818
}
1919
}

Version.xcconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
APP_VERSION = 0.33.2
2-
APP_BUILD = 385
1+
APP_VERSION = 0.33.3
2+
APP_BUILD = 388
33

appcast.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22
<rss xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle" version="2.0">
33
<channel>
44
<title>Copilot for Xcode</title>
5+
<item>
6+
<title>0.33.3</title>
7+
<pubDate>Tue, 18 Jun 2024 00:03:29 +0800</pubDate>
8+
<sparkle:version>388</sparkle:version>
9+
<sparkle:shortVersionString>0.33.3</sparkle:shortVersionString>
10+
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
11+
<sparkle:releaseNotesLink>https://github.com/intitni/CopilotForXcode/releases/tag/0.33.3</sparkle:releaseNotesLink>
12+
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.33.3/Copilot.for.Xcode.app.zip" length="50147650" type="application/octet-stream" sparkle:edSignature="bYFnu939VtqEAhkQ+3IxKUaapG8dmDcZWWJNjV6de4dJ/z1u1WUm/9gXVTX3MpqXxOxxGz0cYXjPtUVlq6MkDA=="/>
13+
</item>
514
<item>
615
<title>0.33.2</title>
716
<pubDate>Fri, 31 May 2024 00:26:22 +0800</pubDate>
@@ -30,16 +39,5 @@
3039
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
3140
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.33.1.beta/Copilot.for.Xcode.app.beta.2.zip" length="50235347" type="application/octet-stream" sparkle:edSignature="rYSFf8oumdSQSDLZCse0oKrD8fb7VbqwCtn2hMcMWh1zFZk4PFfwngyvZCMDUJJyYPGbYAOWvvAzmOw9mrHiDg=="/>
3241
</item>
33-
<item>
34-
<title>0.33.0</title>
35-
<pubDate>Wed, 15 May 2024 01:34:14 +0800</pubDate>
36-
<sparkle:version>376</sparkle:version>
37-
<sparkle:shortVersionString>0.33.0</sparkle:shortVersionString>
38-
<sparkle:minimumSystemVersion>12.0</sparkle:minimumSystemVersion>
39-
<sparkle:releaseNotesLink>
40-
https://github.com/intitni/CopilotForXcode/releases/tag/0.33.0
41-
</sparkle:releaseNotesLink>
42-
<enclosure url="https://github.com/intitni/CopilotForXcode/releases/download/0.33.0/Copilot.for.Xcode.app.zip" length="46218778" type="application/octet-stream" sparkle:edSignature="OiIxIyet6Qj9pDFVCDDRE64bpcGvVOk9GvqhAFN+zIiBAP7XlKkpOBWhJ2YDFKty5w2SfjVIlD19qpil1GkMBw=="/>
43-
</item>
4442
</channel>
4543
</rss>

0 commit comments

Comments
 (0)