Skip to content

Commit

Permalink
Pre-release 0.31.104
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Feb 27, 2025
1 parent 8338363 commit 090e1e6
Show file tree
Hide file tree
Showing 68 changed files with 1,288 additions and 604 deletions.
4 changes: 4 additions & 0 deletions Copilot for Xcode.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
3ABBEA2B2C8BA00300C61D61 /* copilot-language-server-arm64 in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA2A2C8BA00300C61D61 /* copilot-language-server-arm64 */; };
3ABBEA2C2C8BA00800C61D61 /* copilot-language-server-arm64 in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA2A2C8BA00300C61D61 /* copilot-language-server-arm64 */; };
3ABBEA2D2C8BA00B00C61D61 /* copilot-language-server in Resources */ = {isa = PBXBuildFile; fileRef = 3ABBEA282C8B9FE100C61D61 /* copilot-language-server */; };
3E5DB7502D6B8FA500418952 /* ReleaseNotes.md in Resources */ = {isa = PBXBuildFile; fileRef = 3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */; };
424ACA212CA4697200FA20F2 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 424ACA202CA4697200FA20F2 /* Credits.rtf */; };
427C63282C6E868B000E557C /* OpenSettingsCommand.swift in Sources */ = {isa = PBXBuildFile; fileRef = 427C63272C6E868B000E557C /* OpenSettingsCommand.swift */; };
5EC511E32C90CE7400632BAB /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C8189B1D2938973000C9DCDA /* Assets.xcassets */; };
Expand Down Expand Up @@ -189,6 +190,7 @@
/* Begin PBXFileReference section */
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; };
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; };
3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = ReleaseNotes.md; sourceTree = "<group>"; };
424ACA202CA4697200FA20F2 /* Credits.rtf */ = {isa = PBXFileReference; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = "<group>"; };
427C63272C6E868B000E557C /* OpenSettingsCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenSettingsCommand.swift; sourceTree = "<group>"; };
C8009BFE2941C551007AA7E8 /* ToggleRealtimeSuggestionsCommand.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ToggleRealtimeSuggestionsCommand.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -345,6 +347,7 @@
C8189B0D2938972F00C9DCDA = {
isa = PBXGroup;
children = (
3E5DB74F2D6B88EE00418952 /* ReleaseNotes.md */,
C887BC832965D96000931567 /* DEVELOPMENT.md */,
C8520308293D805800460097 /* README.md */,
C8F103292A7A365000D28F4F /* launchAgent.plist */,
Expand Down Expand Up @@ -678,6 +681,7 @@
C861E6152994F6080056CB02 /* Assets.xcassets in Resources */,
3ABBEA2D2C8BA00B00C61D61 /* copilot-language-server in Resources */,
C81291D72994FE6900196E12 /* Main.storyboard in Resources */,
3E5DB7502D6B8FA500418952 /* ReleaseNotes.md in Resources */,
5EC511E42C90CE9800632BAB /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
10 changes: 10 additions & 0 deletions Copilot for Xcode/Assets.xcassets/ChatIcon.imageset/Chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions Copilot for Xcode/Assets.xcassets/ChatIcon.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "Chat.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"images" : [
{
"filename" : "CopilotError.svg",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"preserves-vector-representation" : true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "display-p3",
"components" : {
"alpha" : "1.000",
"blue" : "0xF4",
"green" : "0xF3",
"red" : "0xFD"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x1C",
"green" : "0x0E",
"red" : "0xB1"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xB2",
"green" : "0xAC",
"red" : "0xEE"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
4 changes: 4 additions & 0 deletions Core/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ let package = Package(
.product(name: "SwiftUIFlowLayout", package: "swiftui-flow-layout")
]
),
.testTarget(
name: "ConversationTabTests",
dependencies: ["ConversationTab"]
),

// MARK: - UI

Expand Down
17 changes: 17 additions & 0 deletions Core/Sources/ChatService/ChatService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,23 @@ public final class ChatService: ChatServiceType, ObservableObject {
activeRequestId = workDoneToken

await memory.appendMessage(ChatMessage(id: id, role: .user, content: content, references: []))

if content.hasPrefix("/releaseNotes") {
if let fileURL = Bundle.main.url(forResource: "ReleaseNotes", withExtension: "md"),
let whatsNewContent = try? String(contentsOf: fileURL)
{
let progressMessage = ChatMessage(
id: UUID().uuidString,
role: .assistant,
content: whatsNewContent,
references: []
)
await memory.appendMessage(progressMessage)
}
resetOngoingRequest()
return
}

let skillCapabilities: [String] = [ CurrentEditorSkill.ID, ProblemsInActiveDocumentSkill.ID ]
let supportedSkills: [String] = skillSet.map { $0.id }
let ignoredSkills: [String] = skillCapabilities.filter {
Expand Down
1 change: 1 addition & 0 deletions Core/Sources/ConversationTab/Chat.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ struct Chat {

enum Field: String, Hashable {
case textField
case fileSearchBar
}
}

Expand Down
Loading

0 comments on commit 090e1e6

Please sign in to comment.