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
49.55k stars 3.03k forks source link

Identify git submodule folders in project panel #12809

Open Angelk90 opened 5 months ago

Angelk90 commented 5 months ago

Check for existing issues

Describe the feature

It seems that the reference to a submodule is not considered by zed.

Link: https://github.com/zed-industries/extensions/tree/main/extensions

Vscode:

https://github.com/zed-industries/zed/assets/20476002/24092757-5142-4043-b72c-6e805ab3488b

Zed:

Screenshot 2024-06-08 alle 19 36 21

Github:

Screenshot 2024-06-08 alle 19 39 23

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

No response

Moshyfawn commented 5 months ago

Related:

someone13574 commented 5 months ago

Pretty sure you need to init submodules beforehand.

Angelk90 commented 5 months ago

I think we need to do something similar to #12263 like @CFKeef did.

someone13574 commented 5 months ago

How would that work though? Clone every submodule at startup? I definitely would be against Zed automatically cloning every submodule, as repos with large amounts of them exist.

notpeter commented 2 months ago

I think it could be useful to have an icon to indicate a folder is a submodule (like the 'S' in VScode) potentially adding the commit/branch to the hover state might also be useful too.

Zed managing/updating submodules is definitely not the scope of this issue.