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

feat(fmt): lsp hover #4923

Merged
merged 25 commits into from
Jul 10, 2024
Merged

feat(fmt): lsp hover #4923

merged 25 commits into from
Jul 10, 2024

Commits on Jul 10, 2024

  1. clean up lsp contexts

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    72b2f2a View commit details
    Browse the repository at this point in the history
  2. Added new wasm endpoint: hover

    Added ease of use fn to tops: documentation
    Added Name as model position variant
    
    This currently only intentionally triggers over the name of a model and is unimplemented elsewhere. I would ideally leave those as todo to leave it to language-tools in the meantime however language-tools does not currently handle rust panics correctly
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    fa820c6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    da42432 View commit details
    Browse the repository at this point in the history
  4. clippy

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    cbadb98 View commit details
    Browse the repository at this point in the history
  5. Apparently we had Type as a variant of FieldPosition, but it was neve…

    …r actually returned as a valid variant, so now it is.
    
    Made `iter_tops` on walkers public. Unsure if there's a better way about this; it seemed the most convenient for right now.
    
    Added a helper to FieldType to retrieve names.
    
    Further clean-up of hover
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    7bcb9e8 View commit details
    Browse the repository at this point in the history
  6. clean up offsets import

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    39b21c3 View commit details
    Browse the repository at this point in the history
  7. add docs for hover api

    use topwalker
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    82909c4 View commit details
    Browse the repository at this point in the history
  8. make hover optional

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    f8b92e1 View commit details
    Browse the repository at this point in the history
  9. relation info

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    8fca5fd View commit details
    Browse the repository at this point in the history
  10. find_top + clippy

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    77e9821 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e3fd278 View commit details
    Browse the repository at this point in the history
  12. Add expect for model from view

    remove dbg
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    88a5fd2 View commit details
    Browse the repository at this point in the history
  13. relation_info cleanup

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    c6d65df View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    a5c32a9 View commit details
    Browse the repository at this point in the history
  15. Show doc on hover of composite and enum block names

    Show field doc on hover of model and composite field names
    
    add conversion methods to enum / composite type scalar fields for composite type field walker
    
    general cleanup
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    f2cc369 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d09d7e0 View commit details
    Browse the repository at this point in the history
  17. add positioning for enum value names

    hover enum value + doc
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3853c95 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    512d91c View commit details
    Browse the repository at this point in the history
  19. fix import

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    17845a3 View commit details
    Browse the repository at this point in the history
  20. Test for hover on relation field when said relation model has another…

    … relation that is broken
    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    0ba6317 View commit details
    Browse the repository at this point in the history
  21. remove postgresql test

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    7f18ff4 View commit details
    Browse the repository at this point in the history
  22. clarify broken relations test

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    3b8f52a View commit details
    Browse the repository at this point in the history
  23. chore(psl): removing parser DB early bailout (#4942)

    * remove early bailout in parser db
    * We can no longer assume that relation fields exist as the opposite side of the relation might not exist yet.
    * Added refine_known for usage in QE; refine is now optional as we cannot guarantee a field is either a scalar or relation outside of the QE
    
    ---------
    
    Co-authored-by: Sergey Tatarintsev <[email protected]>
    Druue and SevInf committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    e06d9f2 View commit details
    Browse the repository at this point in the history
  24. doc cleanup

    Druue committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    beb6763 View commit details
    Browse the repository at this point in the history
  25. clean-up from review

    added test for embedded m2n in mongodb
    
    Co-authored-by: Flavian Desverne <[email protected]>
    Druue and Weakky committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    9b731ac View commit details
    Browse the repository at this point in the history