-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
zed-industries/zed
#17529Description
I'm seeing some pretty pathological problems in the breadcrumbs/symbol bar at the top of a file (and in scrolling performance as a result.) For some reason as I navigate around in a style section, it repeats css names more and more. So given a style section like
<style>
.wrapper::after {
display: block;
}
</style>
My symbol/breadcrumbs bar initially reads:
[filename].svelte > .wrapper::after > .wrapper::after
Then after moving around and coming back (but I can't reliably trigger it, or figure out what is triggering it):
[filename].svelte > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after
Then yet later:
[filename].svelte > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after > .wrapper::after
(By this point scrolling/typing performance has slowed to an unusable crawl.) Not sure if this is an extension bug or a Zed bug, but I haven't seen it in .ts
or .css
files.
Things I've noticed:
- no problems in HTML or
<script>
sections. - I get the same behaviour (e.g. same number of repeats) for all selectors in the
<style>
tag - whether classes, elements, pseudoclasses or selector lists. - The base case seems to be just the one duplication e.g.
[filename].svelte > .myclass > .myclass
. I've never seen it with only one copy - it's always at least doubled. - If I can trigger any more repeats than that it's likely to grow uncontrollably.
Thanks for the extension! Other than this problem, first impressions were really good!
Metadata
Metadata
Assignees
Labels
No labels