File tree 1 file changed +4
-5
lines changed
compiler/src/dotty/tools/dotc/interactive 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -154,12 +154,11 @@ object Completion:
154
154
155
155
val completer = new Completer (mode, prefix, pos)
156
156
157
- val completions = path0 match
158
- case untpd.Select (qual, _) :: _ :: untpd.ExtMethods (_, _) :: _ =>
159
- val tpdQual = ctx.typer.typedExpr(qual)
160
- completer.selectionCompletions(tpdQual)
161
- case _ => tpdPath match
157
+ val adjustedPath : List [Tree ] = path0 match
158
+ case (sel : untpd.Select ) :: _ :: untpd.ExtMethods (_, _) :: _ => List (ctx.typer.typedExpr(sel))
159
+ case _ => tpdPath
162
160
161
+ val completions = adjustedPath match
163
162
// Ignore synthetic select from `This` because in code it was `Ident`
164
163
// See example in dotty.tools.languageserver.CompletionTest.syntheticThis
165
164
case Select (qual @ This (_), _) :: _ if qual.span.isSynthetic => completer.scopeCompletions
You can’t perform that action at this time.
0 commit comments