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
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.
Add a keyboard shortcut to the above command
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.
alexandrudima Instead of [{}], I now get [null], which I argue is still not ideal. But I've documented it in the Release Notes anyway. I'm too scared to change it to something else. 😆
Activity
joaomoreno commentedon Jun 1, 2018
alexandrudima Instead of
[{}], I now get[null], which I argue is still not ideal. But I've documented it in the Release Notes anyway. I'm too scared to change it to something else. 😆add release notes for microsoft/vscode#42851
alexdima commentedon Jun 11, 2018
Good catch João Moreno (@joaomoreno)
Turns out JS works differently than I would have thought when passing undefined as an argument in a function which uses var-args.
Fixes #42851: Make two separate invocations in the case where the com…