You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a request to find a most appropriate configured target for indexing purposes
It's prompted by the fact that LSP has to operate on targets instead
of configured targets at the moment because there is (currently) no
way (or enough information) on LSP side to select a canonical target
for a given document.
This change creates an API endpoint for `selectConfiguredTargetForIndex`.
It makes it possible to select a single configured target given a target GUID and
a run destination (+ other parameters).
Copy file name to clipboardExpand all lines: Sources/SwiftBuild/SWBBuildServiceSession.swift
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -433,6 +433,24 @@ public final class SWBBuildServiceSession: Sendable {
433
433
return buildSettings.compilerArguments
434
434
}
435
435
436
+
public func selectConfiguredTargetsForIndex(targets:[SWBTargetGUID], buildDescription:SWBBuildDescriptionID, buildRequest:SWBBuildRequest)asyncthrows->[SWBConfiguredTargetIdentifier]{
0 commit comments