You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Completions provided at the marker position include catch, foo and then
π Expected behavior
It would be great if in a situation like this promise methods would get at least deprioritized and if they would appear at the bottom of the list.
Additional information about the issue
It's technically okay to return thenables compatible with Promise interface but it should be a very rare situation. I think a DX win here would justify hiding those members completely.
The text was updated successfully, but these errors were encountered:
π Search Terms
completions promise return expression type async members
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play/?ts=5.6.0-dev.20240716#code/C4TwDgpgBAsiAq5oF4oG8CwAoKUBmA9gQFxQDOwATgJYB2A5gNzYC+zW2eArrQMbDUCtKMAgUAFLwBGpcQEooyAHywESKAB8oABUoEAttTIQAPHESQlCtC2zZRE+YpXjMOKAHoAVAEYvH1jk5diA
π» Code
π Actual behavior
Completions provided at the marker position include
catch
,foo
andthen
π Expected behavior
It would be great if in a situation like this promise methods would get at least deprioritized and if they would appear at the bottom of the list.
Additional information about the issue
It's technically okay to return thenables compatible with
Promise
interface but it should be a very rare situation. I think a DX win here would justify hiding those members completely.The text was updated successfully, but these errors were encountered: