Another option that seems much simpler: Register the completion-models for all languages, and when invoking code-completion and retrieving the current context, simply break if "languageForContext(currentContext) != myLanguage". Greetings, David