-
Notifications
You must be signed in to change notification settings - Fork 12.8k
outline view is always slow and loading, code cannot be folded. #28389
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
(Experimental duplicate detection) |
Please follow this guide to track down what's slow https://github.com/Microsoft/vscode/wiki/Performance-Issues#profile-the-running-extensions |
@jrieken Here's the tracking file. thank you. As what i mentioned before, i disabled all extensions, while problem is still there. PS: i got my macbook hot all the time. mmmmm, maybe i can bake something on it 😂 CPU-20180718T082407.627Z.cpuprofile.txt |
Looks pretty idle doesn't seems to be in the extension host. Please check via |
@jrieken Here's the screenshot, thank you. |
Hm, if at all it's the TypeScript extension (or its server) but 62% CPU doesn't sound outrageous... |
60-70% CPU can lasts for serveral minutes, and the outline is not shown correctly, i can't fold or unfold code. When CPU take up rate comes to 0, everything becomes normal. PS: there are no ts files in the folder, only js files. |
Hello? Anything else that I can do here? @mjbvz |
Does this reproduce in the latest VS Code insiders build with all extensions disabled? |
@mjbvz Latest VS Code insiders build has the same problem on my mac. |
I believe I have a similar problem. Profiling the extensions reveals nothing - they all seem to be behaving themselves, but code outline and autocompletion are taking minutes to refresh, the latter displaying Here's my
|
@richsilv Please open a separate issue @qdechochen Can you please try collecting the TS Server log:
Look through that log file for errors or stack traces. If you can share the log, I can also take a look to see if anything stands out
|
@mjbvz Log file is attached here. I don't understand the log details, but I think I give you some info about the timestamp which may help. 10:13:0.xxx is the time I opened VSCODE. But in the log, there's a time gap between 10:13:0.714 and 10:14:4.941 structureChanged: false Elapsed: 0ms |
@mjbvz anything else I can do to help? |
Thank you for the logs! From the logs, it looks like TypeScript 2.9 is being used. Was the log collected from a vscode insiders build or from the current VS Code 1.25 release? If these logs are from vscode insiders, have you configured your workspace to use a different version of typescript? |
@mjbvz I do have insider version installed on my mac, but the log was from version 1.25.1. I don't think I did the configuration to change to another version of ts, because I didn't know how to do that. Now I tried selecting ts version, it only shows use vs code's version 2.9.2. then I tried install and switch to typescript 3.0.1, problem still there. |
I installed typescript 3.0.1 to my project, and switch to it, problem is still there. I changed to 2.9.2, problem comes out again. Since 2.9.2 comes from vs code 1.25. How can I change it to 2.8 by default, without install it in my every project? |
Can you please share the logs from the most recent version of typescript, which is not 3.1.0. This version of typescript is included in the latest vscode insiders build |
Hi @mjbvz, I installed latest insider version, TS version is 3.1.0. but you said it's not 3.1.0?? with ts 3.1.0, problem is still there. here's the new log. |
Sorry, 'not' should have been 'now' I cannot repo this issue and it unclear from the logs what is going wrong. The project seems to load properly and folding ranges + the outline are computed properly by the server. Are you able to share a small example project that demonstrates this issue so I can try debugging on my machine? |
Hi @mjbvz, please clone this repository to debug. (https://github.com/qdechochen/osql.git) Open it in code, then open ast-translator.js (or some other files), outline will be loading and loading. (sometimes, this step may be short.) Then you type something, do some change, outline will then be loading and loading, and may last for 30+ seconds after you stop typing.
|
I verified this in the latest typescript version using: https://github.com/qdechochen/osql.git It includes a some very large and highly nested files which cause the |
@sheetalkamat: Can you verify whether this might also be resolved by #28629, given the large number of paths involved in the project? If it isn't, then either you or I can take a look at this for 3.3. |
@mjbvz @qdechochen The link to git repository is not working. Do I need to do anything special? |
|
|
@sheetalkamat narrowed the problem to the checker. From discussion with @sheetalkamat we came up with a few things for investigation:
|
Issue Type: Bug
Steps to Reproduce:
Since my last post was closed, I have to post again.
I need to say first: I have disabled all extensions, and I've never installed the local history extension.
it's annoying especially when i want to see some code which is folded, and i can't unfold it.
VS Code version: Code 1.25.1 (1dfc5e557209371715f655691b1235b6b26a06be, 2018-07-11T15:33:29.235Z)
OS version: Darwin x64 17.6.0
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: enabled
rasterization: enabled
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: