Skip to content
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

My System Get Very Slow After updating to last version of VS Code #5091

Closed
abdollahkahne opened this issue Mar 5, 2022 · 14 comments
Closed

Comments

@abdollahkahne
Copy link

Issue Type: Bug

I am not sure what is the source of this performance difficulties but after updating VS Code and running the dotnet run my system get very slow or even locked the screen totally. I am using Omnisharp Extension for C# and also .NET SDK 6.0.200 too which is responsible for executing the dotnet run command in my ubuntu.

Extension version: 1.24.1
VS Code version: Code 1.65.0 (b5205cc8eb4fbaa726835538cd82372cc0222d43, 2022-03-02T11:12:36.248Z)
OS version: Linux x64 5.13.0-30-generic
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz (4 x 1599)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 2, 2, 2
Memory (System) 3.64GB (0.11GB free)
Process Argv --unity-launch --crash-reporter-id 020e1364-b40c-422c-98be-c370c1a3b40a
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256860
pythonvspyl392:30443607
pythontb:30283811
pythonvspyt551:30345470
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263cf:30335440
vscorecescf:30445987
pythondataviewer:30285071
vscod805cf:30301675
pythonvspyt200:30340761
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
testflightcf:30433671
vsc1dst:30438360
pythonvs932:30410667
wslgetstartedc:30433508
vsclayoutctrt:30448491
vsrem710:30416614
dsvsc009:30440023
pythonvsnew555cf:30442237
vsbas813:30436447
vscscmwlcmc:30438804
vscgsvidc:30447482
helix:30440343

@abdollahkahne
Copy link
Author

I do not reported this to VS Code Repository. If it is necessary please let me know. Thanks

@abdollahkahne
Copy link
Author

Since I am not sure this issue be related to this extension I already hold it to be sure about it. Thank you

@lonix1
Copy link

lonix1 commented Mar 7, 2022

Seems the same as in my issue.

I'm also on ubuntu, same versions of vscode and o# as you.

See my issue maybe what I documented there applies to you too? Hope we can compare to diganose the problem and give them the info they need to debug this.

@valderrey
Copy link

I have the same problem in windows with vscode

@lonix1
Copy link

lonix1 commented Mar 9, 2022

@abdollahkahne @valderrey Do you find also that something like searching for file is slow? If you use CTRL p and try open a file, even that is slow to find the file?

@lonix1
Copy link

lonix1 commented Mar 11, 2022

I also noticed even saving a file ctrl s takes more time, like 1-2 seconds. Before it was almost instant.

@abdollahkahne
Copy link
Author

I also noticed even saving a file ctrl s takes more time, like 1-2 seconds. Before it was almost instant.

I see this from about one month ago (After upgrading from .Net 5 to .Net 6). It happens for me, usually for file with much lines of code . Personally I see it for files with more than 200 lines of code. It is related to beautifying the codes (.Net Formatter)

@lonix1
Copy link

lonix1 commented Mar 12, 2022

I hope that this PR will fix it.

@lonix1
Copy link

lonix1 commented Mar 12, 2022

Debugging is also VERY slow.

@abdollahkahne
Copy link
Author

I close this issue as I think my problem already is resolved. Thanks for following.

@lonix1
Copy link

lonix1 commented Mar 23, 2022

What did you do to fix it?

@abdollahkahne
Copy link
Author

What did you do to fix it?

I am not sure my problem is same as other but I propose some general tips:

  • The first thing I should mention here is that I am using Visual Code Debian version and not the snap one which install automatically if we install it using dotnet apt install code (run command snap list to see if code is snap or debian).
  • I decrease size of my workspace. It included more than 30 .Net project with lots of assets. I try to create the workspace specific to my current solutions/projects.
  • I also have trouble with project picker in omnisharp in the same time. I tries to manually install the vsix of a beta version (I do not remember what was the version I think it was 1.23.18 Beta Link )
    May be my projects are not big enough to see errors again. It would be great to test the project that have problem for others.

@lonix1
Copy link

lonix1 commented Apr 8, 2022

Thanks for the tips!

@abdollahkahne
Copy link
Author

@lonix1
Today I encounter the problem again. I just copy a large Div from Google results with lots of css style and html elements inside and then save it. It shows Formatting before save for a while and I close the message. Also even after deleting it the message that shows again the message since it can not completed the last format and save (it shows them on index.razor__virtual.html yet) .After closing the code and re-opening it, the problem was fixed. I also find out that there is a setting in visual code regarding formatter which makes formatting specific to modification only which may be help your case (The default is on file).
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants