-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No docs in code completion #23694
Comments
I ran into this as well; it would be great to be able to preview dartdoc info when completing methods. |
I remember that:
I'm also concerned about amount of work we would need to perform to extract documentation for each CompletionSuggestion. Also, could one of the clients remind me what is, or what do they expect to see in |
Can we implement it, and measure the actual cost? If we do see a significant cost to populating the field, this could be something that clients opt into. |
I'm coping this performance difference from the CL.
|
It is still slow to compute and not put into JSON. |
…ggestion. R=brianwilkerson@google.com BUG= #23694 Review URL: https://codereview.chromium.org/1380223003 .
Done. |
Err... |
It's very slow during switching tabs. |
Switching to @pq; Phil, let's meet about this - this is the last big item left. |
Related to profiling the cost of storing element docs but the element counts themselves are generally interesting. Background: #23694 R=brianwilkerson@google.com Review URL: https://codereview.chromium.org/1537503002 .
This does away with the expensive call to `computeDocumentationComment` in favor of cached comments. Notably this makes adding doc content to code completion proposals performant (and so is done here). It should also make `dartdoc` *much* faster for doc generation since there are no more trips to disk to fetch comments for elements (still needed for source though). For more on the desire for docs in completions see here: #23694 R=brianwilkerson@google.com, scheglov@google.com Review URL: https://codereview.chromium.org/1534043002 .
Landed in 1f8eddc. |
The CompletionSuggestion should have a value for the docSummary and docComplete fields when the source code has documentation, but they don't. For example, asking for code completion at the end of the next-to-last line in this sample code will return null (missing) fields:
The text was updated successfully, but these errors were encountered: