vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

long project startup time in new versions of C# extension (wait for number of projects to appear)

Open inlineHamed opened this issue 2 years ago • 6 comments

I'm using vs code + C# + "C# devkit" in last 4 months. After updating C# and C# dev kit extensions to their new versions, the project startup time dramatically increased. The vs code itself is ok but I have to wait a significant amount of time (around 3 min) for intellisence to start working. on this time in vs code bottom bar I see a loading icon after projects as shown in this picture:

image

and after that loading goes, number of projects appears and intelisense works.

I revert my C# extension version from 2.7.25 to 2.4.4 and the long waiting time reduced to 5 seconds.

inlineHamed avatar Oct 25 '23 09:10 inlineHamed

Interesting - devkit is generally responsible for project loading - but if downgrading the C# extension version worked it sounds like an issue on our side with processing the project info they send us.

dibarbet avatar Oct 25 '23 21:10 dibarbet

@tmeschter Any thoughts on this for what we should be looking for?

jasonmalinowski avatar Oct 27 '23 18:10 jasonmalinowski

I'm not sure but maybe this help: my solution contains a project from a folder outside of my workspace.

inlineHamed avatar Oct 28 '23 16:10 inlineHamed

I wouldn't expect that to matter, but thanks for mentioning it.

jasonmalinowski avatar Oct 30 '23 18:10 jasonmalinowski

updated to C# 2.14.8 and the long waiting time is back. C# dev kit is 1.1.16

inlineHamed avatar Dec 19 '23 10:12 inlineHamed

@inlineHamed can you let me know if you can still reproduce this on the latest (prerelease) version of the C# extension and C# DevKit?

dibarbet avatar Jul 31 '24 21:07 dibarbet

Closing, we've made a ton of changes on both C# and C# Dev Kit side to project loading and startup. Please try the latest versions and let us know if it's an issue.

dibarbet avatar Feb 05 '25 01:02 dibarbet