I am trying to create a completion for JavaScript. I have the following exampe for the completion.
var jsonob = {
label: String(counter.label),
kind: counter.kind,
insertText: counter.insertText,
};
completionList.push(jsonob);
and counter.insertText has the "function ${1:functionName} (){\n\t\n}" String
when the completion happens what it shows is
function ${1:functionName} (){
}
but it should highlight the word functionName. How to fix this issue?