Skip to content

Auto-complete package names in pubspec.yaml #101

Closed

Description

@jrote1
No description provided.

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    and removed
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    on Aug 16, 2016
  2. modified the milestone: v1.0 on Aug 16, 2016
  3. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    A dart package that uses the pub.dartlang.org api https://github.com/jimsimon/pub_client

  4. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    I will look into doing this

  5. DanTup commented on Aug 16, 2016

    @DanTup
    Member

    Strange that there's no search API or ability to download the entire list; seems like we'd have to download them all page-at-a-time and cache them somewhere? :(

  6. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    they have a custom search endpoint not sure if we can use that
    https://github.com/dart-lang/pub-dartlang/blob/master/app/handlers/search.py

  7. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    I have started investigation it and they use google apis

  8. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    I have figured it out, this is the endpoint but we require a google api key, https://www.googleapis.com/customsearch/v1?cx=009011925481577436976:h931xn2j7o0&q=angular&key=

  9. DanTup commented on Aug 16, 2016

    @DanTup
    Member

    Hmmm, maybe pulling down a list and caching it would be best. Maybe worth seeing if we can find anyone else already providing this functionality and what they do.

    I wonder if @devoncarew might have any suggestions on what would be best (and whether anyone else is doing it)?

  10. jrote1 commented on Aug 16, 2016

    @jrote1
    ContributorAuthor

    Caching does sound like the best option, but when should be refresh the cache :/

  11. DanTup commented on Aug 16, 2016

    @DanTup
    Member

    Maybe depends on how big it is/how long it takes to download! If it doesn't take long to fetch, maybe refreshing at activating (in BG) if it's more than 24hrs old?

  12. devoncarew commented on Aug 16, 2016

    @devoncarew
    Contributor

    No one else is doing it that I know of :) The old Dart Editor did use to do keyword completion for pubspec files, but not package name completion. I wonder if the built-in lexical completion is sufficient here?

  13. 16 remaining items

  14. added this to the v3.9.0 milestone on Jan 2, 2020
  15. modified the milestones: v3.9.0, On Deck on Mar 11, 2020
  16. modified the milestones: On Deck, Backlog on Jul 2, 2020
  17. added
    in lsp/analysis serverSomething to be fixed in the Dart analysis server
    and removed on Sep 1, 2020
  18. modified the milestones: Backlog, On Deck on Nov 19, 2020
  19. modified the milestones: On Deck, v3.21.0 on Mar 1, 2021
  20. DanTup commented on Mar 4, 2021

    @DanTup
    Member

    This is done in dart-lang/sdk@d901f73.

    (It'll arrive in a future SDK update).

  21. HerrNiklasRaab commented on Apr 7, 2021

    @HerrNiklasRaab

    @DanTup This is a very nice feature!

    But I think every autocomplete suggestion should include the latest available version.

  22. DanTup commented on Apr 8, 2021

    @DanTup
    Member

    There's an open issue at #2078 about versions. I do have a working PoC for it, but I haven't had changed to finish it off and land it yet. Subscribe there for updates :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions