I’m encountering an issue with the ‘Focus on New Code’ feature in VS Code. Despite following the documentation, the feature doesn’t seem to be working as expected. Instead of focusing on new code, it still displays issues from the overall codebase. My code base is written in C# and I am using connected mode. Any idea what’s going on?
Hey @Ankur_Malhotra, welcome to the community! And thanks for reporting this.
I believe I managed to reproduce the issue: for some reason, SonarLint does not use the “new code definition” from the server, although it seems to be synchronized correctly.
I created a ticket to investigate and fix this issue, probably in version 4.1.
SonarLint for VSCode v4.1 has been released and it includes the fix to the mentioned ticket. Please let us know if it fixes your issue.
All the best,