-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Complex JSDoc generates very large quick info response #24140
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
Comments
Heh. Everything is printed structurally (all the way down) because we don't see the typedefs for, eg, So, two remarks:
|
I think we can set a reasonable upper bound on this. Perhaps something like 2000 characters? Even that is probably overkill |
Would you like some kind of text at the truncation location (eg, |
A We could do this truncation on the VS Code side too but it's probably best avoid sending the data from the ts server in the first place |
Much. The buffer encoding takes a fair chunk of time; usually at least 50% as long as actually generating the string did. |
Uh oh!
There was an error while loading. Please reload this page.
From microsoft/vscode#49919
TypeScript Version: 2.9.0-dev.20180512
Search Terms:
Code
For the JS
Trigger a quick info on
doSomething
Bug
This generates a huge response object that ends up hanging VS Code. Here's the log file:
log.txt
Playground Link:
Related Issues:
The text was updated successfully, but these errors were encountered: