Merge pull request #6716 from eed3si9n/wip/global-keys

Fixes tab completion of global keys
This commit is contained in:
eugene yokota
2021-11-16 19:51:58 -05:00
committed by GitHub
2 changed files with 9 additions and 2 deletions
+6 -1
View File
@@ -304,7 +304,12 @@ object Act {
case Some(ProjectRef(uri, _)) => index.keys(Some(BuildRef(uri)), conf, task)
case _ => Set()
}
val keys: Set[String] = index.keys(proj, conf, task) ++ buildKeys
val globalKeys: Set[String] =
proj match {
case Some(_) => index.keys(None, conf, task)
case _ => Set()
}
val keys: Set[String] = index.keys(proj, conf, task) ++ buildKeys ++ globalKeys
keyParser(keys)
}
@@ -118,14 +118,16 @@ object ClientTest extends AbstractServerTest {
"compileIncSetup",
"compileIncremental",
"compileJava",
"compileOrder",
"compileOutputs",
"compileProgress",
"compileScalaBackend",
"compileSplit",
"compilerCache",
"compilers",
)
assert(complete("compi") == expected)
assert(complete("compi").toVector == expected)
}
test("testOnly completions") { _ =>
val testOnlyExpected = Vector(