niosus / EasyClangComplete

:boom: Robust C/C++ code completion for Sublime Text 3/4
https://niosus.github.io/EasyClangComplete/
MIT License
575 stars 78 forks source link

Could be possible to disable to show the popup immediately when clicking on a line that has an error? #754

Open dortamiguel opened 3 years ago

dortamiguel commented 3 years ago

When I click a line that has an error the popup appears immediately and I can't click the code that is underneath and sometimes code that I want to read.

I see there is an option called show_errors, but if I turn it off the highlight of the error disappears so it's hard to tell where it is.

I just use the command "ECC: Show all errors" so for me the popup is redundant, could be possible to have an option called "show_popup_error"?

I will like to turn that one off

niosus commented 3 years ago

@ellipticaldoor thanks for this idea. You can still copy the code over, the popup won't interfere with this. We could consider adding such an option but I won't have the time to work on it. I would review a PR with this feature though if you're willing to implement it.

dortamiguel commented 3 years ago

Ah I see, in the end what worked for me was to disable the function show_popup_if_needed in popup_error_vis.py with an early return.

     def show_popup_if_needed(self, view, row):
+        return
         """Show a popup if it is needed in this row.