Not sure why vs code would be throwing that error, I use phpStorm and have never gotten that error.
try deleting the Controller and recreating it.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )