I have a function like the following and I realize I should declare it async
.
function createDefaultScorers {
return db.insertInto("...")
.values([...])
.execute();
}
So I type in async right before the function
keyword. I see that cursor makes a suggestion of async
+ space and I also see that I have the suggestions from vscode. What feels a little weird is that the code looks great and the error message doesn’t make sense. Visually it’s not obvious to notice that the space wasn’t actually completed:
Happens to me almost every day now. Getting used to it, but still annoying. Especially when I press ENTER (to take vscode suggestion) and I see correct code (space suggestions are undistinguishable from actual spaces). Cannot paste second image of that because I’m a first-time poster on the forum.