Cognitive Complexity Issue not highlited anymore

Please provide

  • Operating system: Mac Sequoia 15.2
  • SonarLint plugin version: 4.14
  • 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 there.

If I understand correctly, neither SonarQube Community Build or SonarQube for VSCode are raising an issue on cognitive complexity?

Are other issues being raised on the same file?

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

Hi there @trajao !

Thanks for reporting this behavior! Here is how I tried to reproduce it:

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?

All the best,
Sophio

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.

Got it.

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).

Best,
Sophio