Visual Studio Code can now convert your long chains of Promise.then()'s into async/await!
Works very well in both JavaScript and TypeScript files. .catch() is also correctly converted to try/catch
pic.twitter.com/xb39Lsp84V
-
Show this thread
-
-
Replying to @WellGuimaraes
That will be available for the TypeScript files in WebStorm 2018.3 EAP next week: https://www.jetbrains.com/webstorm/eap/ Stay tuned!
1 reply 0 retweets 1 like
Replying to @WebStormIDE @WellGuimaraes
We have double-checked that and it actually works in WS 2018.2! Update your project TypeScript version to 3.1 (and check that the correct version is selected in the IDE Preferences | TypeScript) and make sure that the compilation target is set to es6 in tsconfig.json.pic.twitter.com/64lyOefZLx
0 replies
1 retweet
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.