mirror of
https://github.com/sbt/sbt.git
synced 2026-10-06 18:14:04 +02:00
fix exception thrown when tab completing invalid project name
This commit is contained in:
+1
-1
@@ -196,7 +196,7 @@ object Act
|
||||
}
|
||||
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) }
|
||||
|
||||
val uris = index.buildURIs
|
||||
|
||||
Reference in New Issue
Block a user