I'm aware of #451 and this is going into a similar direction, but it's not quite the same (and maybe not necessary if that other issue is solved).
I was wondering whether refreshTargets() should be called whenever the grammar of the current view changes. This could be done using the onDidUpdate, but I couldn't get it to work myself (otherwise there would now be a pull request). The aim would be to limit the amount build providers shown in the dropdown, since one could then run a simple grammar test in isEligible(). What are your thoughts on this?
Of course, this could be pushed a little further, for instance by calling refreshTargets() on atom.pane.onDidChangeActiveItem.
I'm aware of #451 and this is going into a similar direction, but it's not quite the same (and maybe not necessary if that other issue is solved).
I was wondering whether
refreshTargets()
should be called whenever the grammar of the current view changes. This could be done using theonDidUpdate
, but I couldn't get it to work myself (otherwise there would now be a pull request). The aim would be to limit the amount build providers shown in the dropdown, since one could then run a simple grammar test inisEligible()
. What are your thoughts on this?Of course, this could be pushed a little further, for instance by calling
refreshTargets()
onatom.pane.onDidChangeActiveItem
.