mirror of https://github.com/sbt/sbt.git
Revert "Completion for build-level keys"
This reverts commit e35f9bb11e.
This commit is contained in:
parent
39ad8cfb7d
commit
4ea2a99c3b
|
|
@ -49,22 +49,12 @@ object Act {
|
|||
new ParsedKey(makeScopedKey(proj, conf, task, extra, key), mask)
|
||||
}
|
||||
|
||||
val projectKeys =
|
||||
for {
|
||||
rawProject <- optProjectRef(index, current)
|
||||
proj = resolveProject(rawProject, current)
|
||||
confAmb <- config(index configs proj)
|
||||
partialMask = ScopeMask(rawProject.isExplicit, confAmb.isExplicit, false, false)
|
||||
} yield taskKeyExtra(proj, confAmb, partialMask)
|
||||
|
||||
val build = Some(BuildRef(current.build))
|
||||
val buildKeys =
|
||||
for {
|
||||
confAmb <- config(index configs build)
|
||||
partialMask = ScopeMask(false, confAmb.isExplicit, false, false)
|
||||
} yield taskKeyExtra(build, confAmb, partialMask)
|
||||
|
||||
buildKeys combinedWith projectKeys map (_.flatten)
|
||||
for {
|
||||
rawProject <- optProjectRef(index, current)
|
||||
proj = resolveProject(rawProject, current)
|
||||
confAmb <- config(index configs proj)
|
||||
partialMask = ScopeMask(rawProject.isExplicit, confAmb.isExplicit, false, false)
|
||||
} yield taskKeyExtra(proj, confAmb, partialMask)
|
||||
}
|
||||
def makeScopedKey(proj: Option[ResolvedReference], conf: Option[String], task: Option[AttributeKey[_]], extra: ScopeAxis[AttributeMap], key: AttributeKey[_]): ScopedKey[_] =
|
||||
ScopedKey(Scope(toAxis(proj, Global), toAxis(conf map ConfigKey.apply, Global), toAxis(task, Global), extra), key)
|
||||
|
|
|
|||
Loading…
Reference in New Issue