Skip to content

JS autocomplete doesn't work for object literal shorthands  #41259

Closed
@jurajmatus

Description

@jurajmatus

TS Template added by @mjbvz

TypeScript Version: 4.1.0-dev.20201026

Search Terms

  • suggest / suggestion
  • intellisense
  • object short hand

  • VSCode Version: 1.51.0-insider (7a3bdf4)
  • OS Version: Arch Linux

Steps to Reproduce:

  1. Suppose there are variables in the current context (be it local or global)
  2. Create an object literal and try to use a variable in a shorthand style
  3. No semantic autocompletion is offered, and textual autocomplete is only offered after 3 characters

GIF file to better demonstrate:
vscode

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDomain: Completion ListsThe issue relates to showing completion lists in an editorEffort: ModerateRequires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".Fix AvailableA PR has been opened for this issueHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions