- Operating system: Windows 11
- IDE name and flavor/env: VSCode 1.121.0 (user setup)
Following Connected mode setup | VS Code | Sonar Documentation, it is possible to bind local projects to any connected SonarQube server.
At the end of the process, the project’s settings.json file is edited/created to include the following:
{
"sonarlint.connectedMode.project": {
"connectionId": "<connectionId>",
"projectKey": "<projectKey>"
}
}
Question
Why is connectionId versioned? Isn’t that supposed to be a “current user” configuration? Other user might have a different connectionId for the same server, right?
Suggestion
Would it be possible to just version the “projectKey” and then let “SonarQube for IDE” use the only server configured by default (or the current connected one)?
- In case a user has multiple servers configured, it can let the user choose the desired one, and store the selection in the user (or workspace)'s settings.json instead of the project’s settings.json.
- Alternatively, it can still work as is (letting the user to version both at project’s level)
