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

dispatchAction() not working for certain wallaby commands #24

Closed
ProLoser opened this issue May 5, 2018 · 1 comment
Closed

dispatchAction() not working for certain wallaby commands #24

ProLoser opened this issue May 5, 2018 · 1 comment

Comments

@ProLoser
Copy link

ProLoser commented May 5, 2018

I'm using atom-wallaby and tried to create a button to trigger one of the actions:

// configuration.js
...
{
  type: 'popover',
  label: 'Wallaby',
  pathOfIcon: '/Users/dsofer/.atom/octicons/law.png',
  iconPosition: 'left',
  items: [
    {
      type: 'button',
      label: 'Toggle',
      click() {
        dispatchAction('wallaby:toggle-panel', 'workspace', true);
      },
    },
    {
      type: 'button',
      label: 'Start',
      click() {
        dispatchAction('wallaby:start', 'workspace', true);
      },
    },
    {
      type: 'button',
      label: 'Stop',
      click() {
        dispatchAction('wallaby:stop', 'workspace', true);
      },
    },
    {
      type: 'button',
      label: 'Jump',
      click() {
        dispatchAction('wallaby:jump-to-error-source', 'workspace', true);
      },
    },
    {
      type: 'button',
      label: 'Open App',
      click() {
        dispatchAction('wallaby:open-wallaby-app', 'workspace', true);
      },
    }
  ]
}
...

All the commands work except for wallaby:jump-to-error-source and I'm not sure why.

@ProLoser
Copy link
Author

ProLoser commented May 5, 2018

Nevermind, I had to change workspace to editor

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