-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add custom matchers for completions (fuzzy search for presentation compiler) #19850
Conversation
val extMethodsInScope = termCompleter.scopeCompletions.toList.flatMap: | ||
case (name, denots) => denots.collect: | ||
case d: SymDenotation if d.isTerm && d.termRef.symbol.is(Extension) => (d.termRef, name.asTermName) | ||
val termCompleter = new Completer(Mode.Term, prefix, pos, _.startsWith(prefix)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry if the question doesn't make much sense, I'm not really familiar with this code, but does it mean that extension methods will be excluded from the fuzzy search? 🙂
In any case, great to see this improvement finally coming to Scala 3 completions! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is my oversight. It should also be fuzzy. Great catch 👍🏻
…mpiler) (scala#19850) Fixes scalameta/metals#4656 Fixes scala#5507 Fixes scala#17706 To ensure CI output will be the same on all runners, I'm scheduling runs on all jvm versions + windows. [test_windows_full] [test_java8] [test_java11] [test_java15] [test_java17] [test_java18] [test_java19]
…mpiler) (#19850) Fixes scalameta/metals#4656 Fixes #5507 Fixes #17706 To ensure CI output will be the same on all runners, I'm scheduling runs on all jvm versions + windows. [test_windows_full] [test_java8] [test_java11] [test_java15] [test_java17] [test_java18] [test_java19] [Cherry-picked acfc621][modified]
…mpiler) (#19850) Fixes scalameta/metals#4656 Fixes #5507 Fixes #17706 To ensure CI output will be the same on all runners, I'm scheduling runs on all jvm versions + windows. [test_windows_full] [test_java8] [test_java11] [test_java15] [test_java17] [test_java18] [test_java19] [Cherry-picked acfc621][modified]
Fixes scalameta/metals#4656
Fixes #5507
Fixes #17706
To ensure CI output will be the same on all runners, I'm scheduling runs on all jvm versions + windows.
[test_windows_full]
[test_java8]
[test_java11]
[test_java15]
[test_java17]
[test_java18]
[test_java19]