SonarSource / sonarlint-visualstudio

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

Promoting Peek definition to Document triggers analysis of all open documents #1657

Open rita-gorokhod opened 4 years ago

rita-gorokhod commented 4 years ago

Description

Promoting a document opened by peek definition triggers an analysis of all open files.

Repro steps

  1. Open VS with multiple c++ files open.
  2. Keep them open, close and reopen VS.
  3. In the new VS instance, in the first opened file, open peek definition.
  4. Promote the peek definition to a document.

Expected behavior

No analysis of opened files.

Actual behavior

Analysis of all opened files.

Known workarounds

None.

loic-joly-sonarsource commented 4 years ago

It just happened to me again, while doing the same actions. This time, there was also a yellowish-gold banner accusing SonarLint of being the culprit, and suggesting that I deactivate it: image (sorry for the French, let me know is a translation can help)