Skip to content

Commit 9ff813c

Browse files
committed
Bump CopilotForXcodeKit to 0.5.0
1 parent 16bd701 commit 9ff813c

5 files changed

Lines changed: 18 additions & 6 deletions

File tree

Core/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ let package = Package(
1515
dependencies: [
1616
.package(
1717
url: "https://github.com/intitni/CopilotForXcodeKit",
18-
from: "0.4.0"
18+
from: "0.5.0"
1919
),
2020
.package(
2121
url: "https://github.com/pointfreeco/swift-dependencies",

Core/Sources/SuggestionService/SuggestionService.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ public class SuggestionService: SuggestionServiceType {
88
public init() {}
99

1010
public var configuration: SuggestionServiceConfiguration {
11-
.init(acceptsRelevantCodeSnippets: true, mixRelevantCodeSnippetsInSource: false)
11+
.init(
12+
acceptsRelevantCodeSnippets: true,
13+
mixRelevantCodeSnippetsInSource: false,
14+
acceptsRelevantSnippetsFromOpenedFiles: true
15+
)
1216
}
1317

1418
public func notifyAccepted(_ suggestion: CodeSuggestion, workspace: WorkspaceInfo) async {}

CustomSuggestionService.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

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

CustomSuggestionService/Dependency.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ struct SuggestionServiceDependencyKey: DependencyKey {
1111

1212
struct MockSuggestionService: SuggestionServiceType {
1313
var configuration: SuggestionServiceConfiguration {
14-
.init(acceptsRelevantCodeSnippets: true, mixRelevantCodeSnippetsInSource: false)
14+
.init(
15+
acceptsRelevantCodeSnippets: true,
16+
mixRelevantCodeSnippetsInSource: false,
17+
acceptsRelevantSnippetsFromOpenedFiles: true
18+
)
1519
}
1620

1721
func getSuggestions(

CustomSuggestionService/TestField/TestField.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ struct TestField {
106106
indentSize: 4,
107107
usesTabsForIndentation: false,
108108
relevantCodeSnippets: [
109-
.init(content: relevantCodeSnippet, priority: 999),
109+
.init(
110+
content: relevantCodeSnippet,
111+
priority: 999,
112+
filePath: ""
113+
),
110114
]
111115
),
112116
workspace: workspace

0 commit comments

Comments
 (0)