@phpstorm https://twitter.com/umaar/status/1045655069478334464 … is this something we can expect getting to phpstorm/webstorm as well? :)
-
-
Replying to @martinherweg @phpstorm
JetBrains WebStorm Retweeted JetBrains WebStorm
This works in PhpStorm and WebStorm with TypeScript 3.1:https://twitter.com/WebStormIDE/status/1047496823567540224 …
JetBrains WebStorm added,
JetBrains WebStorm @WebStormIDEYou can use TypeScript 3.1 and its new intention that converts Promises to async functions in .ts files in WebStorm 2018.2: - update the project's TypeScript version and - select TypeScript 3.1 in Preferences | Languages & Frameworks | TypeScript. pic.twitter.com/R2hX6lOfIe1 reply 0 retweets 0 likes -
Replying to @WebStormIDE @phpstorm
Yeah stumbled across this tweet a few minutes later, would be great to get this to JS files as well if possible
1 reply 0 retweets 0 likes -
Replying to @martinherweg @phpstorm
You can use TypeScript to check your JavaScript files, in this case the intention will also work in the .js files. You need to install TS 3.1 in your project and add a tsconfig.json file with the allowJS: true option: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html …
1 reply 0 retweets 0 likes
For the WebStorm's own refactoring please vote for this feature request: https://youtrack.jetbrains.com/issue/WEB-26313
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.
Works very well in both JavaScript and TypeScript files. .catch() is also correctly converted to try/catch