Is it possible to disable a specific prompt? #155
Unanswered
WrayOfSunshine
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing scripts that are used by a video game and occasionally the game will have a feature that requires an await, but I get quick fix prompt that I should remove the "unnecessary" await. I find it difficult to ignore the little prompt of dots under the await - is there a way to tell the extension not to prompt me for these, or teach it what methods do require an await?
Example line:
await ns.write("/data/serverlist.txt", JSON.stringify(serverList), "w")
ns is a collection of all functions that are exposed by the game for scripts to use, and ns.write in this context does what you might expect and writes a file. Because everything is written asynchronously, we must await for the file write to finish before moving on, so this await is (per the game's documentation, anyway) necessary.
Beta Was this translation helpful? Give feedback.
All reactions