-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue
Milestone
Description
Code
const sounds = {
'cat': 'meow',
'd o g': 'woof',
'🐮': 'moo'
};
sounds.
Trigger completions at the end of sounds
Expected behavior:
Completion entries for all three member properties are returned. Selecting each triggers the following insertions:
sounds.cat
sounds['d o g']
sounds['🐮']
Actual behavior:
Only completion entries for valid JS identifier names are returned (cat in this instance
).
The object in this case already has the correct types, we just don't return completions for them
Metadata
Metadata
Assignees
Labels
FixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScriptVS Code TrackedThere is a VS Code equivalent to this issueThere is a VS Code equivalent to this issue