I closed visual studio code and re-opened it and that solved the problem. I am not sure why it happened in the first place but probably due to some command in the shell script I was writing and debugging,