Add missing awaits when destructuring properties from a promisified type #57831
Labels
Experience Enhancement
Noncontroversial enhancements
Help Wanted
You can do this
Suggestion
An idea for TypeScript
Milestone
π Search Terms
missing await destructuring codefix promise promisified members properties
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?#code/JYOwLgpgTgZghgYwgAgKoGdrIN4ChnLAAmAXMumFKAOYDc+yIcAthGRVSHbgL665EICADZwoKGAFcQCMMAD2IZNQhgM0ABQBKMgAUo85sEwAedVAB89XHHQBPGciky5i5JAracDBIoqMWFABeZVVzbQA6AHoAKgBGGKjrAl8Qf2xkWIAmROQeZBCVNUwobXoeIA
π» Code
π Actual behavior
with
preferences.includeCompletionsWithInsertText
at marker 1 we get completions forid
andname
and the line gets auto-fixed for us:Nothing like that happens at marker 2 - no completions, no auto-fixes
π Expected behavior
It would be cool if the second would work like the first one in this regard. It could go from:
to
Additional information about the issue
it's a feature request but the bug report template just worked the best here π
The text was updated successfully, but these errors were encountered: