eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Missing completion proposal while completing on the name of pattern binding variable in some scenarios

Open
#5,370 1 comment 0 reactions 1 assignee Claimed by @srikanth-sankaran View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

```
LocalVariableBinding local = methodArgument instanceof Argument blah ? bla| Arrays.stream(scope.locals)
.filter(Objects::nonNull)
.filter(LocalVariableBinding::isParameter)
.filter(parameter -> CharOperation.equals(parameter.name, methodArgument.name))
.findFirst()
.orElse(null);
```

I am at the `bla|` after `methodArgument instanceof Argument blah ?`

Completion does not recognize that I am trying to complete on the name of the pattern binding variable `blah`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.