I'm currently writing a fairly trivial activity plugin with 3.11 and am stuck on the completion stuff. I've added in the code suggested in relevant docs. It all seems to work but the completion state of the activity isn't shown. Other activities in the same course indicate their completion status on the course page, but mine flat refuses to do so. Can someone please point me at the relevant stuff I need in my plugin to make this happen?