SonarLint in VS Code, connected mode


(Jeremie Gabor) #1

I am trying to set up sonarLint in VSCode to be connected to my sonarQube server. I have set up the user settings:
“sonarlint.connectedMode.servers”: [
“serverId”: “serverId”, // Connection identifier
“serverUrl”: “serverUrl”, // SonarQube/SonarCloud URL - https// for SonarCloud
“token”: “token” // User token - generated in SonarQube/SonarCloud in My Account>Security
and the workspace settings to connect to a specific project:
“sonarlint.connectedMode.project”: {
“serverId”: “serverId”,
“projectKey”: “projectKey”
The connection seems to be working since I get an error message whenever I put an invalid project name. However, when I use an existing project name and mark an issue as False Positive on SonarQube, it still appears as an error in VSCode. For some reason VSCode does not seem to be picking up the updates from the server. I tried triggering the “Update SonarLint binding to SonarQube/SonarCloud” command but that did not seem to change anything.

Any tips?