The idea is to check the chain at the point in the suspension travel where the chain length will be longest. On most newer bikes this will be when fully compressed. But it can’t hurt to check throughout the travel.
You can let the air out of the shock, or just disconnect it from one end.