-
Notifications
You must be signed in to change notification settings - Fork 364
Tree-view API is not being called on startup #732
Comments
Right now I can't test this because you have a bug in your code. You don't https://github.com/azawawi/atom-perl6-editor-tools/blob/master/lib/file-icons.js#L13 If you could fix that so I can investigate more, I'd appreciate it 😀 |
Thanks for pointing it out. It is now fixed. However, it did not throw any exception when loaded. On startup, it is not calling Thanks for your time. |
@lee-dohm, Any update on this one? |
It looks like a call to consumeFileIcons: (service) ->
FileIcons.setService(service)
@fileIconsDisposable = service.onWillDeactivate -> FileIcons.resetService()
@treeView?.updateRoots() |
Thanks. Fix in azawawi/atom-perl6-editor-tools@fa0339e as a workaround. Please fix in tree-view. |
@azawawi @ssorallen since you both are familiar with the fix, would one of you mind submitting a PR? I'm swamped with a kajillion other things at the moment and I'm not sure when exactly I'll be able to get free to work on this. |
Thanks! Sorry I missed it 😆 |
Fix #732: Tree-view API is not being called on startup
Thanks 👍 |
I am trying to use https://github.com/atom/tree-view#api in my https://github.com/azawawi/atom-perl6-editor-tools/blob/master/lib/file-icons.js#L12 to display custom file icons for Perl 6 file type. The problem is that
iconClassForPath(path)
is called only after a collapse/expand folder event and not on atom environment startup.I have been trying to work around it via the following code but it is not working either.
Your help is appreciated.
The text was updated successfully, but these errors were encountered: