We have noticed that sonar is deleting all the sonar comments from the PR on every fresh build and then re-adding them, meaning if we were to select ‘won’t fix’ for whatever reason, the developer needs to mark it as such constantly.
You are right, it is what happens, the comments are removed and re-created. The status on the comment reflects the status of the issue on SonarCloud.
As a workaround, if the issue is marked as Won’t Fix on SonarCloud instead of in Azure DevOps, the comment status will be updated on Azure, and won’t change in the future analysis even if the comments are dropped and recreated.