@@ -109,9 +109,14 @@ abstract class ScalaCommand[T <: HasLoggingOptions](implicit myParser: Parser[T]
109
109
override def completer : Completer [T ] = {
110
110
val parent = super .completer
111
111
new Completer [T ] {
112
- def optionName (prefix : String , state : Option [T ]): List [CompletionItem ] =
113
- parent.optionName(prefix, state)
114
- def optionValue (arg : Arg , prefix : String , state : Option [T ]): List [CompletionItem ] = {
112
+ def optionName (prefix : String , state : Option [T ], args : RemainingArgs ): List [CompletionItem ] =
113
+ parent.optionName(prefix, state, args)
114
+ def optionValue (
115
+ arg : Arg ,
116
+ prefix : String ,
117
+ state : Option [T ],
118
+ args : RemainingArgs
119
+ ): List [CompletionItem ] = {
115
120
val candidates = arg.name.name match {
116
121
case " dependency" =>
117
122
state.flatMap(sharedOptions).toList.flatMap { sharedOptions =>
@@ -142,10 +147,10 @@ abstract class ScalaCommand[T <: HasLoggingOptions](implicit myParser: Parser[T]
142
147
case " repository" => Nil // TODO
143
148
case _ => Nil
144
149
}
145
- candidates ++ parent.optionValue(arg, prefix, state)
150
+ candidates ++ parent.optionValue(arg, prefix, state, args )
146
151
}
147
- def argument (prefix : String , state : Option [T ]): List [CompletionItem ] =
148
- parent.argument(prefix, state)
152
+ def argument (prefix : String , state : Option [T ], args : RemainingArgs ): List [CompletionItem ] =
153
+ parent.argument(prefix, state, args )
149
154
}
150
155
}
151
156
0 commit comments