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

Fixes #2592: Filter code completion proposals from language server #2658

Merged
merged 3 commits into from
Oct 6, 2016

Conversation

kaloyan-raev
Copy link
Contributor

@kaloyan-raev kaloyan-raev commented Sep 29, 2016

What does this PR do?

Implements filtering based on the existing FuzzyMatches used for the
GoToSymbolAction.

What issues does this PR fix or reference?

Previous behavior

The list of completion proposal was not filtered based on the user input. The issue is especially visible on language servers (like those for JSON and PHP) which do not execute such filtering on the server side and leave it to the client. See #2592 for details.

code-completion-filtering

New behavior

The list of completion proposal is filtered using a fuzzy matching strategy. Look at the below animation:

che-ca-filter

PR type

  • Minor change = no change to existing features or docs
  • Major change = changes existing features or docs

Minor change checklist

  • New API required?
  • API updated
  • Tests provided / updated
  • Tests passed

Signed-off-by: Kaloyan Raev kaloyan.r@zend.com

…e server

Implements filtering based on the existing FuzzyMatches used for the
GoToSymbolAction.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>
@codenvy-ci
Copy link

Can one of the admins verify this patch?

@TylerJewell
Copy link

@evidolob - maybe not tied to this PR, but should we think about shrinking the height of the selection box if the number of filtered entries is less than the visible space? This could make some of the logic challenging as depending upon zoom level of the browser, the number of entries varies.

}

.codeassistant-highlight {
color: completionPopupItemHighlightTextColor;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

end of line space, please

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TylerJewell Sorry, but I don't understand your request. This part is formatted like the rest of the file.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All files need to have an empty line at the end.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now I get it. I will add one.

@benoitf benoitf added kind/enhancement A feature request - must adhere to the feature request template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. team/ide labels Oct 6, 2016
@benoitf
Copy link
Contributor

benoitf commented Oct 6, 2016

ci-build

@codenvy-ci
Copy link

Build # 641 - FAILED

Please check console output at https://ci.codenvycorp.com/job/che-pullrequests-build/641/ to view the results.

@vparfonov vparfonov merged commit 902912b into eclipse-che:master Oct 6, 2016
@vparfonov
Copy link
Contributor

thanks, nice job

@kaloyan-raev kaloyan-raev deleted the ca-filter branch October 6, 2016 11:41
JPinkney pushed a commit to JPinkney/che that referenced this pull request Aug 17, 2017
…e server (eclipse-che#2658)

* Fixes eclipse-che#2592: Filter code completion proposals from language server

Implements filtering based on the existing FuzzyMatches used for the
GoToSymbolAction.

Signed-off-by: Kaloyan Raev <kaloyan.r@zend.com>

* Add empty line at end of file.
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Nov 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants