Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom keybinding for extension causes error during unit test #13091

Open
core-ai-bot opened this issue Aug 31, 2021 · 0 comments
Open

Custom keybinding for extension causes error during unit test #13091

core-ai-bot opened this issue Aug 31, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by redmunds
Monday Mar 09, 2015 at 15:25 GMT
Originally opened as adobe/brackets#10725


  1. Install an extension that adds a Command (e.g. Jump to Matching Brace)
  2. Use Debug > Open User Key Map to change shortcut such as:
        "Alt-Shift-[": "pflynn.jump-to-matching-brace"
  1. Save keymap.json file and verify no errors
  2. Debug > Run Tests, Unit tab, and Run KeyBindingManager tests

Result:
Error Reading User Key Map You are assigning shortcuts to non-existant commands:

The problem is that Unit Tests do not load extensions, so KeyBindingManager tests should not be using user's keymap.json file.

cc@RaymondLim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant