atom / status-bar

Status bar for Atom
MIT License
100 stars 72 forks source link

Status bar is blank until file is "open" (annoying) #194

Closed brendanfalkowski closed 7 years ago

brendanfalkowski commented 7 years ago

Description

The status bar is empty until a file is hard "opened" to a permanent tab.

It's really annoying not being able to see what git branch or file path I'm actually looking at.

Steps to Reproduce

  1. Click a file in the sidebar
  2. The status bar is empty (no file, encoding, git info) — GRRRRR
  3. Double-click the file
  4. Now the status bar works (for "open" tabs only)

Expected behavior: No matter what the active tab is, the full status bar should render.

Actual behavior: Until a file is "open" the status bar is empty.

Reproduces how often: 100%

Versions

I think this started in Atom 1.16 (ish). Occurs now in 1.17.1.

rsese commented 7 years ago

I had 1.16 installed on another machine and can confirm that the status bar was populated with pending pane items but the behavior is as described above in 1.17.1 and 1.18.0-beta0.

thomasjo commented 7 years ago

This is caused by a regression in Atom core; upon opening a (pending) text editor pane, the pane is not marked as active, which means that atom.workspace.getActiveTextEditor() returns undefined. Simply clicking anywhere in the editor triggers the activation, and the expected object is returned.

jasonrudolph commented 7 years ago

I think we're close to resolving this issue.

I think that will cover all of Atom's bundled packages that populate the status bar with info for a given pane item. If anyone's aware of any other bundle packages that are affected by this issue, please let me know.