# Let TeX Studio recognize \declaretheorem

For some reason, my new TeX-Studio (TeXstudio 2.11.2, running on Ubuntu 16.04) does not recognize theorem environments defined by \declaretheorem. MWE:

\documentclass{article}
\usepackage{amsthm,thmtools}
\declaretheorem{corollary}
\begin{document}
\begin{corollary}
\end{corollary}
\end{document}


The code compiles properly, but the editor marks begin and end as "unrecognized command":

Even more annoying: when typing \begin{, it does not allow to complete corollary as a valid environment. It does allow it for theorems, however:

In the configuration, the completion tab, both amsthm.cwl and thmtools.cwl are checked. I also wish to add that on my previous computer (running Ubuntu 14.04), it worked as expected.

Anything else that I am missing, or that might be wrong in my configuration?