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
50.93k stars 3.15k forks source link

Go to definition sometimes opens a new tab "Definitions for X" with a single snippet instead of actually going to the definition #6730

Open evelant opened 10 months ago

evelant commented 10 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

Per the title, when cmd+click or gd to jump to a definition sometimes, but not all the time, zed opens a new tab titled "Definitions for whateverSymbolName". The new tab looks like a search but only contains the single result of the definition. This is annoying and hampers code navigation.

Environment

Zed: v0.119.19 (Zed) OS: macOS 14.2.1 Memory: 16 GiB Architecture: aarch64

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

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

If you only need the most recent lines, you can run the zed: open log command palette action to see the last 1000.

I did not see any relevant entries in the log

SephReed commented 2 months ago

Very much agree. I see what the devs are going for here, but the user flow is still very unintuitive.

AlbertMarashi commented 2 days ago

This is so fkn annoying 😆

Happens with my svelte code and it's so disruptive to my productivity, because now I have to manage these multiple tabs that open, click again to the navigate to the file, close the tab that was opened by "Go to definition"