VSCode is supposed to be light weight and therefor faster than an ide. Why is it then that both visual studio and monodevelop trump VSCode in intellisense. As soon as project start to grow it becomes very apparent how slow intellisense is. Maybe someone could look into why this is the case?
Hey @SamHSmith I definitely agree that performance could be made better. Do you have some specific actions you take where it's slower to respond than normal? Concrete performance problems can typically be resolved, whereas more general issues are not very actionable. There are likely a number of factors involved here, so narrowing things down into specific actions can make it easier to progress.
@filipw unfortunately work like that, while useful, is kind of a shot in the dark. Unless there's a repro we can inspect and profile, it's impossible to say if an improvement like that has addressed the issue @SamHSmith is seeing.
@cartermp Sorry for the slow response. I haven't used vscode or csharp in quite some time but I remember my main issue being an extreme delay between pressing ctrl + space and the app reacting.
Not an issue on small projects but as the dependency list grew and grew it became a real problem. Maybe some kind of O(n^2) situation.
I am having this issue as well. In a new ASP.NET Core controller, when I type this. to get intellisense, the suggestions window pops up immediately but shows Loading for about 8 seconds before showing results. In Visual Studio this same action takes less than 1 second. Also, this happens everytime I ask for intellisense suggestions, so it doesn't seem to be getting cached. To give you an idea of the size of my project, here is the output from cloc which counts lines of code in a given directory:
Language files blank comment code
-------------------------------------------------------------------------------
C# 651 38991 5232 154483
JSON 14 0 0 21244
TypeScript 337 3286 204 18108
XML 7 5 0 6670
PO File 1 803 59 2101
Razor 32 195 12 1391
Sass 21 131 6 668
MSBuild script 11 40 6 239
JavaScript 3 20 6 177
Markdown 2 20 0 51
SVG 3 0 0 47
HTML 1 4 0 33
-------------------------------------------------------------------------------
SUM: 1083 43495 5525 205212
-------------------------------------------------------------------------------
When I hit ctrl+space to show the suggestion window, OmniSharp.exe takes up about 30% of my CPU and averages about 1GB of RAM.
My PC specs are:
With these specs, 8+ seconds seems pretty long for a medium sized project.
Most helpful comment
I am having this issue as well. In a new ASP.NET Core controller, when I type
this.to get intellisense, the suggestions window pops up immediately but showsLoadingfor about 8 seconds before showing results. In Visual Studio this same action takes less than 1 second. Also, this happens everytime I ask for intellisense suggestions, so it doesn't seem to be getting cached. To give you an idea of the size of my project, here is the output from cloc which counts lines of code in a given directory:When I hit
ctrl+spaceto show the suggestion window,OmniSharp.exetakes up about 30% of my CPU and averages about 1GB of RAM.My PC specs are:
With these specs, 8+ seconds seems pretty long for a medium sized project.