When IDE module currently provides suggestion for a variable reference, it produces an invalid document:

On the screenshot above it should be
-variable VARIABLE
+[variable] VARIABLE
So that the inserted text is enclosed in square brackets, similarly to how the STRING terminal is proposed.