The problem is that this affects the visible indentation, which makes writing indentation-sensitive languages like Python more difficult. In the screenshot above, the if/elseare at the same level, however the marker (which is left over from before I changed the code and therefore could be removed) obfuscates that.
Thanks a lot for raising this. I believe you should be seeing the SonarQube Issue Locations view in the File Explorer. There, you have a Clear button that will help you clear the decorations.
That said, I agree that this is not a very intuitive experience Would you mind sharing how you ended up seeing the decorations? Did you open an issue from SonarQube Server in the IDE?
I opened a checked-out Python project in my IDE, and they just came up without me doing anything else.
I have my IDE configured with a connection to our internal Sonarqube Enterprise instance, but most of what I work on is Terraform and CI/CD (Actions workflows, Jenkinsfiles, etc) which are not bound to Sonarqube projects. I do not commonly work on Python projects and this is the first time in a long time that I’ve opened a Python project that is enabled in our Sonarqube server.
I have created this parent ticket to group some UX improvements around this. I am assuming you clicked on an issue inside the SonarQube view and ended up seeing these decorations (this is normal behaviour for issues having multiple locations).
Just to confirm, did the clear button work for you?
Unsure 100% - I wasn’t really paying attention to what I did before spotting the issue, it was only when I found this issue that I realised I needed to know how I got there.
I saved and closed the file, so I got rid of it that way (re-opening the file doesn’t bring up the indicator because the problem it was referring to is addressed). Now I know about the “Clear” button (the issue locations sidebar pane was minimised, I was working out of the Sonarqube tab in the “Problems” area of the screen.
If I come across the issue again, I’ll try the “Clear” button and come back to confirm whether that worked or not.