Closed bbugh closed 7 years ago
Hey, i tried this one and seems like it works only inside parentheses.
var myVar = 1;
console.log(myVar);
//here works fine
var wop = 555 + my;
// but in this case nothing happens
I figured out now how to make it work.
vscode.commands.executeCommand('acceptSelectedSuggestion').then(()=>{
// do the insertion and cursor stuff here
})
If one of the shortcut keys is pressed while there is an Intellisense suggestion selected, the suggestion currently will not be completed. This PR executes the vscode command to accept the current suggestion before running the cursor change command.