How can I get Git to ignore all the .mir files?

Hi, I'm using visual Code and Git on MacOS. I have tried to filter out everything under /bin in my .gitIgnore file, but still i get a bunch of .mir files (under bin/mir/source) showing up in the source control view. Not a huge issue really, but it clutters the source control view for me and I have to manually pikch the files I want to stage and commit each time. 

It seems like the .gitignore file ignores that I have them in there. 

Here is my .gitignore:

in/
bin/mir/
key/
bin/internal-mir/Rez.mir
bin/mir/source/
 

Any ideas what I'm doing wrong?

TIA
/Fredrik