sbt/main
Martin Duhem 60bcc58852 Fix key selection for build level keys
PR #2469 added build keys to tab completion, with the side effect of
considering as available candidate in key selection, thus making sbt
think that some inputs were ambiguous (e.g. `baseDirectory`): should it
apply to the current project or to the build level key?

This commit fixes this issue by improving the key selection:
 - If there's no candidate, we return the default key
 - If there's a single possible project level key, and zero or more
   build level keys, then we select the project level key.
 - If there are zero project level key, and a single build level key,
   then we select the build level key
 - If there are multiple candidates, sbt says that the input is
   ambiguous.

Fixes #2707
2016-08-24 11:13:08 +02:00
..
actions/src Fix #2677: Tags.ForkedTestGroup doesn't work 2016-07-22 10:17:24 -06:00
command/src/main/scala/sbt Fix parser for new command 2016-08-22 11:29:35 -04:00
settings/src Drop sealed from the typeclasses in Append 2015-12-18 14:04:52 +00:00
src Fix key selection for build level keys 2016-08-24 11:13:08 +02:00
NOTICE fix component name in main notice 2010-09-21 22:00:11 -04:00