zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.8k stars 2.67k forks source link

pages of references are repetitive #15668

Open bestgopher opened 1 month ago

bestgopher commented 1 month ago

Check for existing issues

Describe the bug / provide steps to reproduce it

image

Environment

macos; m1

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log


JosephTLyons commented 1 month ago

Hey @bestgopher, can you give me more details about what happened here? Did you get 2 reference tabs when running one find all references action? Or did you run that action twice and just get a duplicate tab? The second one is expected, as we don't try to detect if any changes happened since it was last ran to know if we can simply use the original references tab or not.

bestgopher commented 1 month ago

Or did you run that action twice and just get a duplicate tab

Maybe we can delete last one and open the newest one? Now there are to many duplicate tab and I must delete they manually.

zeux commented 1 week ago

This can be fixed via config:

    "preview_tabs": {
        "enable_preview_from_code_navigation": true
    }

(I think this should be the default but at least there's an option)

bestgopher commented 1 week ago

This can be fixed via config:

  "preview_tabs": {
      "enable_preview_from_code_navigation": true
  }

(I think this should be the default but at least there's an option)

I believe the issue is that when enable_preview_from_code_navigation is set to false, the referenced page repeats.