Canadian immigration documents cannot be issued past the expiry date of your passport, so you’ll need to extend this first, if it expires soon.
If you extend your study permit or apply for the Post-Graduation Work Permit, you will need to wait for your new study or work permit, then extend your TRV (if you need one), MSP and SIN since these are based on your study or work permit.
See the table below to help you plan your document extensions.