Skip to content

Commit 090e1e6

Browse files
committed
Pre-release 0.31.104
1 parent 8338363 commit 090e1e6

File tree

68 files changed

+1288
-604
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+1288
-604
lines changed

Copilot for Xcode.xcodeproj/project.pbxproj

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
3ABBEA2B2C8BA00300C61D61 /* copilot-language-server-arm64 in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA2A2C8BA00300C61D61 /* copilot-language-server-arm64 */; };
1212
3ABBEA2C2C8BA00800C61D61 /* copilot-language-server-arm64 in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA2A2C8BA00300C61D61 /* copilot-language-server-arm64 */; };
1313
3ABBEA2D2C8BA00B00C61D61 /* copilot-language-server in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA282C8B9FE100C61D61 /* copilot-language-server */; };
14+
3E5DB7502D6B8FA500418952 /* ReleaseNotes.md in Resources */ = {isa = PBXBuildFile; fileRef = 3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */; };
1415
424ACA212CA4697200FA20F2 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 424ACA202CA4697200FA20F2 /* Credits.rtf */; };
1516
427C63282C6E868B000E557C /* OpenSettingsCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = 427C63272C6E868B000E557C /* OpenSettingsCommand.swift */; };
1617
5EC511E32C90CE7400632BAB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C8189B1D2938973000C9DCDA /* Assets.xcassets */; };
@@ -189,6 +190,7 @@
189190
/* Begin PBXFileReference section */
190191
3ABBEA282C8B9FE100C61D61 /* copilot-language-server */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = "copilot-language-server"; path = "Server/node_modules/@github/copilot-language-server/native/darwin-x64/copilot-language-server"; sourceTree = SOURCE_ROOT; };
191192
3ABBEA2A2C8BA00300C61D61 /* copilot-language-server-arm64 */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.executable"; name = "copilot-language-server-arm64"; path = "Server/node_modules/@github/copilot-language-server/native/darwin-arm64/copilot-language-server-arm64"; sourceTree = SOURCE_ROOT; };
193+
3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = ReleaseNotes.md; sourceTree = "<group>"; };
192194
424ACA202CA4697200FA20F2 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
193195
427C63272C6E868B000E557C /* OpenSettingsCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSettingsCommand.swift; sourceTree = "<group>"; };
194196
C8009BFE2941C551007AA7E8 /* ToggleRealtimeSuggestionsCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToggleRealtimeSuggestionsCommand.swift; sourceTree = "<group>"; };
@@ -345,6 +347,7 @@
345347
C8189B0D2938972F00C9DCDA = {
346348
isa = PBXGroup;
347349
children = (
350+
3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */,
348351
C887BC832965D96000931567 /* DEVELOPMENT.md */,
349352
C8520308293D805800460097 /* README.md */,
350353
C8F103292A7A365000D28F4F /* launchAgent.plist */,
@@ -678,6 +681,7 @@
678681
C861E6152994F6080056CB02 /* Assets.xcassets in Resources */,
679682
3ABBEA2D2C8BA00B00C61D61 /* copilot-language-server in Resources */,
680683
C81291D72994FE6900196E12 /* Main.storyboard in Resources */,
684+
3E5DB7502D6B8FA500418952 /* ReleaseNotes.md in Resources */,
681685
5EC511E42C90CE9800632BAB /* Assets.xcassets in Resources */,
682686
);
683687
runOnlyForDeploymentPostprocessing = 0;
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Chat.svg",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "CopilotError.svg",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true
14+
}
15+
}
Loading

Copilot for Xcode/Assets.xcassets/CopilotIssue.imageset/Contents.json

+3
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
"info" : {
99
"author" : "xcode",
1010
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true
1114
}
1215
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "display-p3",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xF4",
9+
"green" : "0xF3",
10+
"red" : "0xFD"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0x1C",
9+
"green" : "0x0E",
10+
"red" : "0xB1"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"colors" : [
3+
{
4+
"color" : {
5+
"color-space" : "srgb",
6+
"components" : {
7+
"alpha" : "1.000",
8+
"blue" : "0xB2",
9+
"green" : "0xAC",
10+
"red" : "0xEE"
11+
}
12+
},
13+
"idiom" : "universal"
14+
}
15+
],
16+
"info" : {
17+
"author" : "xcode",
18+
"version" : 1
19+
}
20+
}

Core/Package.swift

+4
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ let package = Package(
194194
.product(name: "SwiftUIFlowLayout", package: "swiftui-flow-layout")
195195
]
196196
),
197+
.testTarget(
198+
name: "ConversationTabTests",
199+
dependencies: ["ConversationTab"]
200+
),
197201

198202
// MARK: - UI
199203

Core/Sources/ChatService/ChatService.swift

+17
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,23 @@ public final class ChatService: ChatServiceType, ObservableObject {
8888
activeRequestId = workDoneToken
8989

9090
await memory.appendMessage(ChatMessage(id: id, role: .user, content: content, references: []))
91+
92+
if content.hasPrefix("/releaseNotes") {
93+
if let fileURL = Bundle.main.url(forResource: "ReleaseNotes", withExtension: "md"),
94+
let whatsNewContent = try? String(contentsOf: fileURL)
95+
{
96+
let progressMessage = ChatMessage(
97+
id: UUID().uuidString,
98+
role: .assistant,
99+
content: whatsNewContent,
100+
references: []
101+
)
102+
await memory.appendMessage(progressMessage)
103+
}
104+
resetOngoingRequest()
105+
return
106+
}
107+
91108
let skillCapabilities: [String] = [ CurrentEditorSkill.ID, ProblemsInActiveDocumentSkill.ID ]
92109
let supportedSkills: [String] = skillSet.map { $0.id }
93110
let ignoredSkills: [String] = skillCapabilities.filter {

Core/Sources/ConversationTab/Chat.swift

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ struct Chat {
5656

5757
enum Field: String, Hashable {
5858
case textField
59+
case fileSearchBar
5960
}
6061
}
6162

0 commit comments

Comments
 (0)