forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scala 3 type completion (scalameta#4174)
* filtering out invalid trait, object, class, import, or apply method completions according to position for scala 3. adding square bracket suffix where relevant for type, new, and instantiation completions, for scala 3. adding curly brace suffix in new completions of trait, abstract, java interface types for scala 3. * preventing duplicate bracket insertion adjust CompletionInterpolatorSuite and CompletionWorkspaceSuite * adjusting the CompletionWorkspaceSuite and CompletionSuite for Scala 2 * ignore "3.2.0-RC1" up to "3.2.1" for the failing interpolator suite tests. * Apply suggestions from code review Co-authored-by: Tomasz Godzik <tgodzik@users.noreply.github.com> * renamings from review * turn type completion variables into immutable values * handling the insertion of cursor position * usage of Flags instead of toString for object and methods * removed unnecessary compat maps for Scala3 * Applying filtering without enrichWithSymbolSearch on interpolate completions results * refactoring the suffix and filtering logic in CursorPositionCondition * test empty parameter list with an implicit param for braces insertion * linking the dotty issue of trees after typer losing information for hasNoSquareBracket calculation * Apply suggestions from code review Co-authored-by: Kamil Podsiadło <37124721+kpodsiad@users.noreply.github.com> * excluding abstract methods for {} insertion correct detection of traits * allowing method traits in method call pos Co-authored-by: Tomasz Godzik <tgodzik@users.noreply.github.com> Co-authored-by: Kamil Podsiadło <37124721+kpodsiad@users.noreply.github.com>
- Loading branch information
1 parent
26a3e71
commit 36b68ec
Showing
7 changed files
with
380 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.