Skip to content

Support lazy resolving of SignatureInformation#documentation #65003

Closed

Description

If signature help returns lots of signatures and each have an documentation associated with it resolving the whole signature help can be time costly. Since we only show the documentation on user interaction lazy resolving this information would be beneficial.

Activity

  1. added
    feature-request
    editor-parameter-hints
    on Dec 13, 2018
  2. sean-mcmanus commented on Dec 13, 2018

    @sean-mcmanus
    Contributor

    Yeah, our C/C++ extensions can encounter 20+ signatures (i.e. overloads), each of which requires a Go to Def to get the newly added doc comments, which can end up taking too long (e.g. 10+ seconds). Our current workaround is to only return the doc comment for the active signature.

  3. mjbvz commented on Dec 9, 2022

    @mjbvz
    Contributor

    Sean McManus (@sean-mcmanus) Is this still an issue for you? If so, could you explain a little more about why computing this information is so expensive? Maybe a more targeted fix can be made for your issue since it doesn't seem like this issue has gotten much traction over the last four years

  4. sean-mcmanus commented on Dec 9, 2022

    @sean-mcmanus
    Contributor

    Yeah, it's still an issue, but we've worked around it via only returning doc comments for the active signature.

    You could "Won't Fix" this if you want. It is some what low priority. It just impacts the documentation comment feature. We're tracking it in our repo at microsoft/vscode-cpptools#6008 and it hasn't gotten any upvotes.

  5. added
    info-needed
    on Dec 9, 2022
  6. mjbvz commented on Dec 9, 2022

    @mjbvz
    Contributor

    Thanks. I'm going to close this then since I don't see us getting around to it anytime soon

    Just out of curiosity, since you already know the signatures, why does resolving the documentation for them take so long?

  7. added
    *out-of-scope
    on Dec 9, 2022
  8. sean-mcmanus commented on Dec 9, 2022

    @sean-mcmanus
    Contributor

    I'm not sure why getting the documentation takes so long, it's possible we could improve the performance of the implementation...extracting the doc comment might require extra parsing work or something.

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

Metadata

Metadata

Labels

*out-of-scopeapieditor-parameter-hintsfeature-requestinfo-needed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions