-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TS Template added by @mjbvz
TypeScript Version: 4.5.0-dev.20211021
Search Terms
completionInfo- suggest / suggestions
isNewIdentifierLocation
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.62.0-insider
- OS Version: Windows_NT x64 10.0.19043
Steps to Reproduce:
- Create a new js file
- Type:
let obj = {
a() {},
async b(- After typing the
(afterasync b, it is autocompleted toblur(). Note how the non-async methodadoes not autocomplete.
I think this is unexpected, as I'm creating a new method same as a, so it shouldn't autocomplete the word.
Similarly, if I do a generator *: * c( it also autocompletes.
Also, computed properties [] do not autocomplete, maybe they should? e.g. [pf( should autocomplete to [parseFloat() I would think?
Here's a video:
repro2.mp4
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issue