SonarSource / sonarlint-visualstudio

SonarLint extension for VisualStudio
https://redirect.sonarsource.com/doc/sonar-visualstudio.html
GNU Lesser General Public License v3.0
460 stars 77 forks source link

Investigate reports of impact on performance of IntelliSense/editing experience #3792

Open duncanp-sonar opened 1 year ago

duncanp-sonar commented 1 year ago

Description

We have had two recent reports of SonarLint for Visual Studio having an impact on the appearance of IntelliSense:

I experience slowdown as well when I begin typing and intellisense is supposed to pop up with suggestions. When SonarLint installed and active, it adds a very noticeable 0.5-1.0 second delay before intellisense appears. Disabling the plugin causes the delay to be removed entirely.

From here.

However, I had to disable the extension due to it being far too slow, and preventing VS in-line syntax/compilation checker from working in a useable way. Other Devs in my team have had this problem also. I am using SonarLint Version 6.13.0.62767 for Visual Studio 2022 Language used is C#

From VS Marketplace reviews.

So far we haven't been able to reproduce this locally.

Additional information/questions

It would be useful to have verbose SonarLint logs (Tools, Options, SonarLint, Logging level = verbose). The logs are displayed in the SonarLint pane of the Output window.

lestival commented 1 year ago

Recently we had to inactive the extension due to performance, only investigate problems with threads see image attached

image
lestival commented 1 year ago

Recently we had to inactive the extension due to performance, only investigate problems with threads see image attached

image

This cause CPU % use too high

lestival commented 1 year ago

With SonarLint.VSIX-6.11 works fine, with SonarLint.VSIX-6.14 occurs

DutchJaFO commented 1 year ago

Visual Studio Professional 17.5 Definite performance degradation noticable with Sonar Lint active.

Project is a Hybrid Blazor application I'm helping develop at work. I also noticed IIS Express instances spawning a ridiculous amount of times (and dissappearing when hovering over the taskbar entries with Sonarlint active. This behaviour dissappeared after I disabled SonarLint.

fmir864 commented 1 year ago

Can confirm the above. I struggles with Hot reload taking too much time with SonarLint. ASP .NET Core 6 Razor Pages. Better if we can disable linting when debugging.