My rule of thumb is:
If it’s a library or framework question, research on your own until quite stuck
If it’s a codebase question, ask immediately (in a relevant company public channel) and continue digging. If you get the answer first, answer your own question, improve docs.