@b4n I've just repushed a hybrid version of the patch - using the `trust_file_scope` name but using `g_str_has_suffix()` as I used in the original patch which I like a bit better (but I don't insist on that one too much if the other version is preferred).
Now the hard stuff - someone has to decide whether to merge this PR or https://github.com/geany/geany/pull/3457. I would lean towards merging this PR and if we start receiving bug reports related to this issue, we can revert to #3457.