GM Service Manual Online
For 1990-2009 cars only

This feature protects you from locking the key in the vehicle when the key is in the ignition and a front door is open.

If the driver side power door lock switch is pressed when the driver's door is open and the key is in the ignition, all of the doors will lock and then the driver door will unlock.

If the passenger side power door lock switch is pressed when the front passenger door is open and the key is in the ignition, all of the doors will lock and then the front passenger door will unlock.