New release: SonarLint for VSCode 1.12.0

I’m pleased to announce the release of SonarLint for VSCode 1.12.0.

In this version, we have almost entirely rewritten the language server to embrace multi-root workspaces. Most settings can now be defined at workspace folder level, which is especially useful when you want to use connected mode and bind each workspace folder to a different SonarQube/SonarCloud project. Look at the readme for more details, but as a teaser:

In user settings:

{
    "sonarlint.connectedMode.servers": [
        { "serverId": "mySonarQube", "serverUrl": "https://sonarqube.mycompany.com", "token": "<generated from SonarQube account/security page>" },
        { "serverId": "sonarcloud", "serverUrl": "https://sonarcloud.io", "organizationKey": "myOrgOnSonarCloud", "token": "<generated from https://sonarcloud.io/account/security/>" }
    ]
}

In each workspace folder settings:

{
    "sonarlint.connectedMode.project": {
        "serverId": "mySonarQube",
        "projectKey": "the-project-key-on-sonarqube"
    }
}

Also, the language server is now handling all events asynchronously, which is likely to give you better VSCode responsiveness.

As usual, don’t hesitate to report any issue you may encounter.

5 Likes