-
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
textDocument/completion payload sizes can be very large because of documentation of in-scope items #55790
Comments
Are you setting the |
Currently, You can control the level of documentation that is included (here and in hovers) with the |
yes, I have set the resolveSupport. My capabilities are as follows: But it still return the documentation field, which is a very large content
|
@onism0106 have you tried changing the For now, I think those are the only options that will help here, until we support Out of interest - what problem is the payload size causing you? (memory usage? time taken to deserialize json? time to send bytes between server and client?). Is your editor open source? |
I started looking at why we didn't use |
Yes, I am worried about performance issues because there will be frequent interactions with the LSP, each time returning a large amount of data. I am concerned that this might cause performance problems,(memory usage? time taken to deserialize json). I don't know if my concern is unnecessary. I'll try set dart.documentation (or dart.maxCompletionItems) later |
If it helps, the payload sizes you're seeing here match what VS Code is dealing with today. I can't be sure the equivalent Dart code performs the same as VS Code's javascript, but hopefully it won't cause any real performance issues. However, I have pinged on the LSP issue about this, and depending on the response (or lack of), may try to progress something in this area (because there is value in reducing payload sizes for some other situations, like when the extension host/LSP server is on a remote machine). |
When using the textDocument/completion method for code completion, a large amount of irrelevant information is returned, including the documentation field. How can I solve this issue? The editor is a custom code editor implemented with Flutter. I have set "suggestFromUnimportedLibraries": false during initialization, but it has not had any effect.
The text was updated successfully, but these errors were encountered: