Loosing IntelliSense (suggestions, go to definitions) in visual studio code for C++ project after changing git branch name

I have changed the name of a branch in my GitHub repository (including deleting the old branch name from remote and local). After that in all my C++ source code files the IntelliSense functions such as loading suggestions, go to the definition are not working anymore. I tried to reinstall Visual Studio Code and install the extension for C/C++ IntelliSense. I've checked the Intellisense function in my other project which I did not touch anything, it works properly. I guess there was a problem with my branch in git and try to get back the branch with the old name. But it does not help.

Has anyone gone through this issue? Do you have any suggestions on which was the issue?

Thank you!