Settings.json comments

Please provide

  • Operating system:
  • SonarLint plugin version:
  • Programming language you’re coding in:
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version):

And a thorough description of the problem / question:
Why does the comment inside the sonarlint.rules in settings.json keep on disappear whenever I deactivate or activate rules using the rules in left panel of VS Code?

Hello @Razile !

Since you ask Why it is happening, here is the code responsible for the behavior :slight_smile:

We are taking the current rule settings, and modifying them, then updating the settings file with the new value. SonarLint relies on VSCode workspace API for updating the configuration files.

Hope that helps,
Sophio :bowing_woman: