Skip to content

Commit 90b2977

Browse files
committed
Move SuggestionInjector to Tool
1 parent 4ea2564 commit 90b2977

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

Core/Package.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ let package = Package(
1414
name: "Service",
1515
targets: [
1616
"Service",
17-
"SuggestionInjector",
1817
"FileChangeChecker",
1918
"LaunchAgentManager",
2019
"UpdateChecker",
@@ -104,7 +103,6 @@ let package = Package(
104103
dependencies: [
105104
"Service",
106105
"Client",
107-
"SuggestionInjector",
108106
.product(name: "XPCShared", package: "Tool"),
109107
.product(name: "SuggestionProvider", package: "Tool"),
110108
.product(name: "SuggestionBasic", package: "Tool"),
@@ -147,14 +145,6 @@ let package = Package(
147145
"ProExtension",
148146
])
149147
),
150-
.target(
151-
name: "SuggestionInjector",
152-
dependencies: [.product(name: "SuggestionBasic", package: "Tool")]
153-
),
154-
.testTarget(
155-
name: "SuggestionInjectorTests",
156-
dependencies: ["SuggestionInjector"]
157-
),
158148

159149
// MARK: - Prompt To Code
160150

TestPlan.xctestplan

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@
2929
"name" : "ServiceTests"
3030
}
3131
},
32-
{
33-
"target" : {
34-
"containerPath" : "container:Core",
35-
"identifier" : "SuggestionInjectorTests",
36-
"name" : "SuggestionInjectorTests"
37-
}
38-
},
3932
{
4033
"target" : {
4134
"containerPath" : "container:Core",
@@ -154,6 +147,13 @@
154147
"identifier" : "SuggestionBasicTests",
155148
"name" : "SuggestionBasicTests"
156149
}
150+
},
151+
{
152+
"target" : {
153+
"containerPath" : "container:Tool",
154+
"identifier" : "SuggestionInjectorTests",
155+
"name" : "SuggestionInjectorTests"
156+
}
157157
}
158158
],
159159
"version" : 1

Tool/Package.swift

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let package = Package(
2020
name: "ChatContextCollector",
2121
targets: ["ChatContextCollector", "ActiveDocumentChatContextCollector"]
2222
),
23-
.library(name: "SuggestionBasic", targets: ["SuggestionBasic"]),
23+
.library(name: "SuggestionBasic", targets: ["SuggestionBasic", "SuggestionInjector"]),
2424
.library(name: "ASTParser", targets: ["ASTParser"]),
2525
.library(name: "FocusedCodeFinder", targets: ["FocusedCodeFinder"]),
2626
.library(name: "Toast", targets: ["Toast"]),
@@ -159,6 +159,15 @@ let package = Package(
159159
.product(name: "CodableWrappers", package: "CodableWrappers"),
160160
]
161161
),
162+
163+
.target(
164+
name: "SuggestionInjector",
165+
dependencies: ["SuggestionBasic"]
166+
),
167+
.testTarget(
168+
name: "SuggestionInjectorTests",
169+
dependencies: ["SuggestionInjector"]
170+
),
162171

163172
.target(
164173
name: "AIModel",
@@ -264,6 +273,7 @@ let package = Package(
264273
"SuggestionProvider",
265274
"XPCShared",
266275
"BuiltinExtension",
276+
"SuggestionInjector",
267277
]
268278
),
269279

Core/Sources/SuggestionInjector/SuggestionInjector.swift renamed to Tool/Sources/SuggestionInjector/SuggestionInjector.swift

File renamed without changes.

Core/Tests/SuggestionInjectorTests/AcceptSuggestionTests.swift renamed to Tool/Tests/SuggestionInjectorTests/AcceptSuggestionTests.swift

File renamed without changes.

Core/Tests/SuggestionInjectorTests/ProposeSuggestionTests.swift renamed to Tool/Tests/SuggestionInjectorTests/ProposeSuggestionTests.swift

File renamed without changes.

Core/Tests/SuggestionInjectorTests/RejectSuggestionTests.swift renamed to Tool/Tests/SuggestionInjectorTests/RejectSuggestionTests.swift

File renamed without changes.

0 commit comments

Comments
 (0)