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

Codelens for IEnumerable uses all CPU resources #4245

Closed
leo-labs opened this issue Nov 26, 2020 · 0 comments · Fixed by #4246
Closed

Codelens for IEnumerable uses all CPU resources #4245

leo-labs opened this issue Nov 26, 2020 · 0 comments · Fixed by #4246

Comments

@leo-labs
Copy link
Contributor

Issue Description

I am working on a medium project that has lots of classes that implement IEnumerable<T>. Rendering the codelens references for the GetEnumerator implementations uses so much CPU that vscode is barely usable if a file with an IEnumerable implementation is open. For me it does not seem to make much sense to render those reference at all, as they point to the interface usages. This is similar to #3243.

Steps to Reproduce

Expected Behavior

Actual Behavior

Logs

OmniSharp log

Post the output from Output-->OmniSharp log here

C# log

Post the output from Output-->C# here

Environment information

VSCode version: 1.51.1
C# Extension: 1.23.6

Mono Information OmniSharp using built-in mono
Dotnet Information .NET Core SDK (reflecting any global.json): Version: 3.1.201 Commit: b1768b4ae7

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.14
OS Platform: Darwin
RID: osx.10.14-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.201/

Host (useful for support):
Version: 3.1.3
Commit: 4a9f85e9f8

.NET Core SDKs installed:
2.2.105 [/usr/local/share/dotnet/sdk]
2.2.402 [/usr/local/share/dotnet/sdk]
3.0.100 [/usr/local/share/dotnet/sdk]
3.1.102 [/usr/local/share/dotnet/sdk]
3.1.201 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 3.1.3 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 2.2.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.7 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.2 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 3.1.3 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

Visual Studio Code Extensions
Extension Author Version
addlocalnetreferences RafisTatar 0.4.8
auto-using Fudge 0.7.15
code-runner formulahendry 0.11.1
csharp ms-dotnettools 1.23.6
debugger-for-chrome msjsdiag 4.12.11
docomment k--kato 0.1.19
dotnet leo-labs 1.3.0
dotnet-test-explorer formulahendry 0.7.4
EditorConfig EditorConfig 0.16.3
gitlens eamodio 11.0.5
monkey-patch iocave 0.1.11
render-crlf medo64 1.5.16
vetur octref 0.30.3
vscode-apollo apollographql 1.17.0
vscode-eslint dbaeumer 2.1.13
@leo-labs leo-labs changed the title Codeles for IEnumerable uses all CPU resources Codelens for IEnumerable uses all CPU resources Nov 26, 2020
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

Successfully merging a pull request may close this issue.

1 participant