Multiple paths to node executable

I have two distinct operating systems I use to develop: macos at home, Ubuntu at work. I use VS Code as my main IDE (but I also use IntelliJ, so it may apply as well).

I use the sonarlint.pathToNodeExecutable property to point to a specific Node install (I use multiple Node instances, all managed by NVM). However I have to fix the path whenever I switch OS, because the path of NVM is different in each one (macos uses `/Users/myuser`, Ubuntu uses `/home/myuser`). The change is synced with the cloud and replicated when I switch OS, breaking the extension functionality and I wouldn’t like to disable it.

I wish the SonarQube extension supported the “mutiple paths” feature. It could be comma separated. Or the property could use internal VS Code variables (e.g. ${userHome}) since the sub-path of NVM is the same in both OSes.

  • Operating system: Ubuntu 24.04 / macos Tahoe
  • SonarQube for VS Code plugin version: 5.2
  • Programming language you’re coding in: any
  • Is connected mode used:
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? no