A district court must give a plaintiff notice and an opportunity to be heard before declining to exercise supplemental jurisdiction and dismissing a state law claim unless the parties have already had an opportunity to brief that issue.