Programming language you’re coding in: Typescript/Angular
Is connected mode used:
Connected to SonarQube (and which version): 10 and 24
And a thorough description of the problem / question:
Weeks ago, I got error from sonarqube on my docker that some of my functions have higher cognitive complexity, and when I clicked on ‘Open Ide’ it’s highlited the functions who got the issue and then when hovered, I have the option to fix with copilot. Right now, I don’t have anything since having the last version of sonarqube and vscode.
Hey,
thanks for replying.
The sonarqube community build raised the issue correctly but when I clicked “Open to Ide” and then open VsCode, I see on the right panel the explanation of cognitive complexity and so on. But the function that caused the issue is not highlighted.
Already tried to downgrade the version of sonarqube for VsCode and Copilot. Maybe it’s a vscode issue… but I really don’t know
Here, the SonarQube issue locations view opens up and the secondary locations (i.e. what contributes to function complexity) are prominently highlighted, while the primary location appears in the problems view (under the function name itself).
Could you please confirm this is the behavior you observe? Or do you not see the cognitive complexity issue appear in the PROBLEMS tab in VS Code? If the latter, could you please provide us with logs?
Hi ,
Yes I got the same screen but without the function name highlighted. Before, I don’t know how but It’s highlighted the function name with higher cognitive complexity, so when I hover it, I can easly click “fix with copilot” from the mini popup.
Could you please provide us with logs? And make sure the issue is not actually fixed? (i.e. the code that raised the issue in SonarQube Server is identical to the local code in the IDE).