Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 229b479

Browse files
committedJun 23, 2024
Update CopilotForXcodeKit
1 parent 34a3a66 commit 229b479

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed
 

‎CopilotForXcodeExtension/CopilotForXcodeExtension.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,14 @@ import SuggestionService
44

55
@main
66
class Extension: CopilotForXcodeExtension {
7-
var host: HostServer?
8-
var suggestionService: SuggestionServiceType?
9-
var chatService: ChatServiceType? { nil }
10-
var promptToCodeService: PromptToCodeServiceType? { nil }
7+
let suggestionService = SuggestionService()
118
var sceneConfiguration = SceneConfiguration()
129

1310
let updateChecker =
1411
UpdateChecker(
1512
hostBundle: locateHostBundleURL(url: Bundle.main.bundleURL)
1613
.flatMap(Bundle.init(url:))
1714
)
18-
19-
required init() {
20-
let service = SuggestionService()
21-
suggestionService = service
22-
}
2315
}
2416

2517
struct SceneConfiguration: CopilotForXcodeExtensionSceneConfiguration {}

‎Core/Sources/CodeCompletionService/CodeCompletionLogger.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ public final class CodeCompletionLogger {
1414
fileURL: .init(filePath: "/"),
1515
relativePath: "",
1616
language: .plaintext,
17-
content: "",
17+
content: "",
18+
originalContent: "",
1819
cursorPosition: .zero,
1920
tabSize: 0,
2021
indentSize: 0,

‎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/TestField/TestField.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ struct TestField {
100100
fileURL: .init(filePath: "/file.swift"),
101101
relativePath: "/file.swift",
102102
language: .builtIn(.swift),
103-
content: text,
103+
content: text,
104+
originalContent: text,
104105
cursorPosition: position,
105106
tabSize: 4,
106107
indentSize: 4,

0 commit comments

Comments
 (0)
Please sign in to comment.