mirror of https://github.com/sbt/sbt.git
fix exception thrown when tab completing invalid project name
This commit is contained in:
parent
9ee30636b3
commit
9cf2c41fb8
|
|
@ -196,7 +196,7 @@ object Act
|
||||||
}
|
}
|
||||||
def resolvedReference(index: KeyIndex, currentBuild: URI, trailing: Parser[_]): Parser[ResolvedReference] =
|
def resolvedReference(index: KeyIndex, currentBuild: URI, trailing: Parser[_]): Parser[ResolvedReference] =
|
||||||
{
|
{
|
||||||
def projectID(uri: URI) = token( examples(ID, index projects uri, "project ID") <~ trailing )
|
def projectID(uri: URI) = token( examplesStrict(ID, index projects uri, "project ID") <~ trailing )
|
||||||
def projectRef(uri: URI) = projectID(uri) map { id => ProjectRef(uri, id) }
|
def projectRef(uri: URI) = projectID(uri) map { id => ProjectRef(uri, id) }
|
||||||
|
|
||||||
val uris = index.buildURIs
|
val uris = index.buildURIs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue