Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix code mining parameter name logic #1441

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

jjohnstn
Copy link
Contributor

@jjohnstn jjohnstn commented Jun 6, 2024

What it does

Fixes the filtering logic for code mining parameter names so parameter names that are single character aren't
matched if the argument contains that character. Also added preferences to users can turn off filtering if desired.

How to test

See original bug or issue.

Author checklist

- add two new preferences regarding the default filter and the
  filtering of implied parameter names
- for filtering of implied parameter names, do not filter out
  parameter names that are 3 characters or less that are contained
  in the argument but filter them out if they are equal
- bump up jdt.ui minor version as new preference constants are added
- fixes eclipse-jdt#1437
@jjohnstn jjohnstn self-assigned this Jun 6, 2024
@jjohnstn jjohnstn added the bug Something isn't working label Jun 6, 2024
@jjohnstn jjohnstn added this to the 4.33 M1 milestone Jun 6, 2024
@jjohnstn jjohnstn merged commit f035a98 into eclipse-jdt:master Jun 7, 2024
9 checks passed
@jjohnstn jjohnstn deleted the codeminingparms branch June 7, 2024 21:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug 546311 - [code mining] Parameter name annotations not shown when parameter value contains it
1 participant