Skip to content

Command handlers receive an empty object #42851

@DonJayamanne

Description

@DonJayamanne
  • VSCode Version: Code 1.19.3 (7c4205b, 2018-01-25T10:25:01.248Z)
  • OS Version: Darwin x64 17.4.0
  • Extensions:

Steps to Reproduce:
(create an extension)

  1. Create a VS Code command
  2. Register a command handler for the command
  3. Invoke the command from a command palette, and nothing is passed into the command handler. When invoked from a file or tree context menu then the file uri is passed.
  4. Add a keyboard shortcut to the above command
  5. However if the command is invoked via a keyboard shortcut, then an empty {} object is passed into the command handler.

Is this by design, to pass an empty object into the command handler when commands are invoked via the keyboard shortcuts.

Metadata

Metadata

Assignees

Labels

debtCode quality issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions