zed-gdscript icon indicating copy to clipboard operation
zed-gdscript copied to clipboard

Feature Request: Add ctrl + click on uid string links, to go to the files destination.

Open kyle-wannacott opened this issue 8 months ago • 3 comments

Like for example icon = preload("uid://b8usw1xoqimkf"),

Ctrl + clicking/ go to definition on a uid string should open the corresponding file (.png in this example). Or/and show what the file path is on mouse hover.

Maintainer edit: This is supported by Godot's language server and the feature depends on the Zed editor adding support for documentation links. The feature will be available once this is implemented: https://github.com/zed-industries/zed/issues/33587

kyle-wannacott avatar May 09 '25 15:05 kyle-wannacott

I think it's not possible yet in the current state of Zed's extension support but I'm keeping it up for when we can do more things with extensions. Maybe some features like this will have to be implemented directly in Godot, in C++, as part of the language server. Zed tends to mainly rely on this protocol and the debugger adapter protocol for language-specific features.

NathanLovato avatar Jun 15 '25 12:06 NathanLovato

This is already implemented in the language server. It will work if Zed implements the document link endpoint: https://github.com/zed-industries/zed/issues/33587

HolonProduction avatar Jul 08 '25 07:07 HolonProduction

@HolonProduction thank you very much for the info! I'll update the opening post to mention that it depends on the Zed editor LSP support.

NathanLovato avatar Jul 08 '25 09:07 NathanLovato