Skip to content

expose trigger character to signature help and completion provider #752

Closed

Description

Add a CompletionContext and SignatureHelpContext which contains the character that has triggered that request: { ch: string }

Activity

  1. added
    feature-request
    on Nov 27, 2015
  2. jrieken commented on Nov 27, 2015

    @jrieken
    ContributorAuthor

    Must not break the API - probe on arguments length

  3. jrieken commented on Dec 4, 2015

    @jrieken
    ContributorAuthor

    Challenge is to have a nice signature that is backwards compatible. I only see something like this

    interface CompletionItemProvider {
      providerItem: ((doc, pos, token) => CompletionItem[] | Promise<CompletionItem[]>) | ((doc, pos, context, token) => CompletionItem[] | Promise<CompletionItem[]>)
    }
    

    which I am not a big fan of

  4. removed this from the Dec 2015 milestone on Dec 4, 2015
  5. jrieken commented on Dec 4, 2015

    @jrieken
    ContributorAuthor

    Needs more thinking...

  6. jrieken commented on Dec 9, 2015

    @jrieken
    ContributorAuthor

    Also, expose if it got triggered because of 24x7 intellisense or manually.

  7. joaomoreno commented on Dec 9, 2015

    @joaomoreno
    Contributor

    Do it and 🍺

  8. 10 remaining items

  9. jrieken commented on Sep 21, 2017

    @jrieken
    ContributorAuthor

    We have now context information for completion request. Most people should be happy now. I am creating a new issue for context information when making signature help requests

  10. DustinCampbell commented on Sep 21, 2017

    @DustinCampbell
    Member

    awesome!

  11. jrieken commented on Sep 21, 2017

    @jrieken
    ContributorAuthor

    Dustin Campbell (@DustinCampbell) Let me know if you are missing something. We have started small, just exposing the trigger character and deciding between two kinds: manual and trigger character

  12. DustinCampbell commented on Sep 21, 2017

    @DustinCampbell
    Member

    I'll let you know. However, this should make it possible for C# to offer completion in special cases after SPACE. For example:

    List<int> l = new // <-- We trigger a completion list on SPACE here that contains List<int>
  13. locked and limited conversation to collaborators on Nov 17, 2017
  14. added a commit that references this issue on Sep 6, 2026
    6d00453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apifeature-requeston-testplanrelease-notessuggest

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions