.sonarlint temporary folder directory filling space, not getting cleared

  • Operating system: Windows 10 version 22H2
  • SonarLint plugin version: 4.10.0
  • Programming language you’re coding in: Mostly but not exclusively TypeScript
  • Is connected mode used: It might have been more than a year in the past, but I don’t think this one was, if it was it would’ve been removed, and I don’t see any of the settings associated with Connected Mode in settings.json.

This appears to be a reboot of SonarLint extension for VSCode is creating way too many tmp folders which was reported as an issue in March 2021 and fixed in August 2023 in v3.21.0 by fixing code that was supposed to clean up temporary folders.

Here is a partial listing of my .sonarlint user folder:

There are several more of these that can’t fit even on that long screenshot, with dates going back to Oct/18/23 (all postdating the supposed fix), and then a “telemetry” folder listed as modified Sept/3/22. It’s about a GB of data that doesn’t seem to be actively helping anything and as far as I can tell is just taking up space on the hard disk. It seems like the issue or another related one probably still exists.

I’d also very much like to customize the location of that folder as a setting, to put it on a different drive.