Indeed. Helping Pakistan develop is a strategic decision that China has taken long time ago.
Nevermind Pakistan's politics, as long as it is not a full US vassal, China will keep supporting it and trying to make it richer and stronger.
The issue I have is that due to its unstable political system, China's help can't do as much as it could in a stable country
Pakistan has made a strategic decision to ally with China, that all factions and institutions agree on.