A way to tell if inside of an async call?

Is there a way to tell if in a JavaScript method if you are inside of an async call?

For example, if you are calling a method that calls other methods and you forget to use await is there anything that will tell you if you forgot to use the await keyword? I don’t see anything in VSCode that indicates this.

hmm not that I’m aware of. That would be useful. Anyone else has any idea?

It’s hard to do that in a JavaScript IDE since the return value of an async function is a Promise, and it’s perfectly valid to not await a Promise (essentially discard the value or save the Promise).

As for JS itself, check this article out.