Repository navigation
Conversation
When a blank text-editor is opened, its tab-icon wouldn't update when it was saved to a path. This commit enables file-icon providers to keep tab icons updated in such cases.
| runs -> | ||
| expect($(tabBar).find('.tab:eq(1) .title')).toHaveClass "status-modified" | ||
|
|
||
| describe "File-icons service", -> |
There was a problem hiding this comment.
In other packages this has been added as a standalone spec file file-icons-spec.coffee.
There was a problem hiding this comment.
Bring it up with @as-cii, because he was the one who told me last time that file-icons-spec was for testing the activation and lifecycle of the service, rather than its visible effect.
I originally thought to add it there, but then I remembered the frustration of moving the specs into the tree-view package's main spec-file, and decided I'd spare myself a similar ordeal.
There was a problem hiding this comment.
He knows better than I do :)
There was a problem hiding this comment.
Hence why I'm relying on precedent scenarios. =)
I'm hoping atom/tree-view#966 gets reviewed sooner, though. The hacks I'm currently writing to monkey-patch the tree-view's file-moving routine are nauseating.
There was a problem hiding this comment.
Jesus... even with monkey-patching, this is impossible to work around. :S
I regret not making this the first PR...
|
Fixed in #402. |
A blank editor doesn't update its tab's icon after it's been saved to disk. Meaning that the file-icon service doesn't have a chance to show anything in the tab until it's been closed and reopened.