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 @umaar
Would be great to have such refactoring in
@WebStormIDE too1 reply 0 retweets 0 likes -
Replying to @pavanpodila @umaar
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 1 retweet 1 like
Replying to @WebStormIDE @pavanpodila
Actually, no need to wait, it works in WebStorm 2018.2! Update your project TypeScript version to 3.1 and make sure that the compilation target is set to es6 in tsconfig.json.pic.twitter.com/0COEZbhy8b
9:35 AM - 1 Oct 2018
0 replies
0 retweets
2 likes
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.