The current Srilankan Govt is known to have a soft corner for China and China has immensely benefited from them. However, now that Srilanka is in deep economic turmoil ; some due to its own creation and some can be attributed to Covid, it is now doing a balancing act and empathising with Indian security concerns. How long will the empathy remains is to be seen Ultimately like in domestic politics even in International politics WHAT PAYS IS YOUR NUISANCE VALUE.
for more reading https://abcnews.go.com/International/wireStory/india-plans-power-project-sri-lanka-chinas-shelved-83734800