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

Status message should appear only in idris projects #52

Closed
laughedelic opened this issue Aug 12, 2015 · 2 comments
Closed

Status message should appear only in idris projects #52

laughedelic opened this issue Aug 12, 2015 · 2 comments

Comments

@laughedelic
Copy link
Member

When I open whatever project not related to idris, I see the message Idris (Not loaded) in the status bar, which doesn't make any sense in this context:
screen shot 2015-08-12 at 11 51 23

@archaeron
Copy link
Member

You're right, thanks for opening the issue.

@jeremy-w
Copy link

A start to fixing this:

  consumeStatusBar: (statusBar) ->
    atom.workspace.onDidChangeActivePaneItem (paneItem) ->
      console.log("active pane item is:", paneItem)
      /* (jws/2015-08-28)TODO: add/remove status based on if it is/not an Idris file */
    @controller.attachStatusIndicator statusBar

It logs whenever I switch tabs. Should be able to spelunk into the provided object to work out if it's an Idris file or not. The best way to go is likely based on the grammar rather than the file extension, since if the grammar is not set to idris, then none of our functions will be available anyway (right?).

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

No branches or pull requests

3 participants