Autocomplete fix

Fixed providing the correct snippets depending on the programming language.