Skip to content

Some keyboard shortcuts stop working when launching from terminal #71553

Closed
@azdavis

Description

@azdavis
  • VSCode Version: Version: 1.33.0-insider, Commit: 4039ea8
  • OS Version: Darwin x64 18.5.0

Steps to Reproduce:

  1. Launch VSCode with no files
  2. Open a new file from a terminal (not VSCode's terminal; something like code file.txt)
  3. Try to use Add Next Occurrence (see below); it doesn't work (the menu bar just 'flashes')
  4. Move the focus away from VSCode (e.g. click on some other app), then back
  5. Try to use Add Next Occurrence; it does work

What I did to "try to use Add Next Occurrence":

  1. Type asdf
  2. Hit Command-D (the shortcut for Add Next Occurrence)
  3. Expect it to select asdf, it doesn't

A similar issue occurs with Copy Line Down. But the issue does not occur with Add Cursor Above or Add Cursor Below. I haven't tried other shortcuts.

The issues does not appear to happen if you skip step 1. But even if you skip step 1, it only doesn't happen for the first time.

What that means is: if VSCode is not running, and I launch it with code file.txt, then the shortcuts work in file.txt. But if I then do code other.txt, then the shortcuts do not work until I move the focus away and back as described.

Actually, the filename other.txt doesn't even have to be different from file.txt. So I can do code file.txt and the shortcuts will work, but then I can do code file.txt again and the shortcuts stop working.

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

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugmacosIssues with VS Code on MAC/OS XverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions