Repository navigation
Remove atom-space-pen-views and custom elements registration - #402
Conversation
|
Hey @as-cii I'm still testing this, but I noticed that everything is a lot slower when I link the tabs package with your changes. When I unlink it Atom is a lot faster. Here's a screenshot of before and after: |
|
I think it might be due to linking the package, which forces Atom to transpile its assets (e.g. Coffeescript, Javascript, Less files, etc.). After loading Atom a second time, the slowdown should disappear. Based on our Slack conversation, I'll go ahead and 🚢 this because no regression has been found. Thanks so much for you help on this, @ungb! 🙇 |
|
@Alhadis, thanks for keeping and eye out. . Hopefully it isn't an issue. Let us know if you do find any other issues. I tested mainly general use cases and other packages that interact with tabs, but might of missed somethings. Great to always get additional eyes and feedback :) |
|
I did notice it's not adding an icon class of |
Nice catch, @Alhadis! ✨ Can you point out the exact DOM element that we should apply the |
|
Whatever element receives the icon classes... |
Interesting, looking at the diff it doesn't seem like I changed anything related to that: before this pull request the |
|
Doesn't matter. We're not using your icon service anymore anyway. |
Summary: atom/tabs#402 removes the custom element that we were relying on in order to access Atom's tab component and create our own. Since the tabs are no longer exposed in any way, we vendor in the relevent atom/tabs code. Reviewed By: zertosh Differential Revision: D4407870 fbshipit-source-id: 1fee14fc0b3fe4aaa4d7f891332fe8f9b28661da
This pull request contains an architectural change that replaces the usage of atom-space-pen-views and custom elements respectively with raw DOM APIs and a JS object managing a non-custom DOM element internally.
As always, the scope of the change was non-trivial, so there's a risk we might have introduced some regressions. @ungb: it would be awesome if you can help preventing this by extensively testing this package (and check if popular packages that interact with
tabsthrow exceptions that could be related, e.g. calling a method that does not exist, calling a method or getting a property from a null object, etc.). ✨