This message was deleted.
# plugin-development
s
This message was deleted.
v
Even if it were possible (not sure whether it is), I doubt that it is a good idea. May I ask what you actually want to achieve that you try to solve with that detection?
b
Well I was thinking of making myself a gradle plugin that would manage my git hooks. I could just write them each project sync, but I was hoping to avoid some IO and only write them when a project is being synced in IDE. I could also check an existence of idea.sync system property, but that would only work with intellij.
v
You could make it a manual step. Or / and given there are tests run, you could have one that verifies the hooks are up to date and fail otherwise. I'm not sure whether you could detect tooling api use, but even if I'm not sure that would help. While I'm not sure whether the commandline client uses a different way or basically also the same interface, you would then get all invocations through IDE, not only syncs.