Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Framework icons only load on file openings and cause visual jitter #6753

Closed
digitarald opened this issue Aug 4, 2018 · 5 comments
Closed
Labels
👋 help wanted 👋 polish Improving a feature that isn't broken
Milestone

Comments

@digitarald
Copy link
Contributor

Adding jitter to #6725, which was about the tabs.

STR:

React icon loads after the file loaded, with layout jitter in the source pane.

screenflow

@digitarald digitarald added 👋 help wanted 👋 polish Improving a feature that isn't broken labels Aug 4, 2018
@claim claim bot added the not-available label Aug 4, 2018
@darkwing
Copy link
Contributor

darkwing commented Aug 4, 2018

My understanding is that we don't know about placing the React icon until we analyze the source, which I don't believe we load until the tab is opened.

I suppose we could automagically assign that icon for tsx files (?)

@jasonLaster
Copy link
Contributor

Yeah, i think we can do three things:

  1. assign it based on tsx, jsx
  2. persist the information on load
  3. do something special with original files [1]

[1] the client has the original source text in the map, which means that we do not need to load the source text from the server. At that point, the only slowdown is parsing the file to determine the framework. I think we can probably stop parsing the file and instead rely on a couple of regexes, which is what the editors do as well.

When we have sourcemap support on the server, it will be easier to identify frameworks for generated files before "load" as well.

@nchevobbe
Copy link
Member

nchevobbe commented Aug 6, 2018 via email

@jasonLaster
Copy link
Contributor

The jump is because a tab with an icon in ~15px wider. I think it would look off to have the 15px and no tab.

@jasonLaster jasonLaster mentioned this issue Aug 8, 2018
9 tasks
@darkwing darkwing added this to the August 28th milestone Aug 21, 2018
@jasonLaster
Copy link
Contributor

This should be fixed now with tabs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
👋 help wanted 👋 polish Improving a feature that isn't broken
Projects
None yet
Development

No branches or pull requests

4 participants