alex-pinkus / tree-sitter-swift

A tree-sitter grammar for the Swift programming language.
MIT License
143 stars 39 forks source link

Breadcrumbs failing occasionally in zed #429

Open yaroslavyaroslav opened 3 months ago

yaroslavyaroslav commented 3 months ago

This is the follow-up to #428 that I failed to resolve.

While the outlines presents all layers solid in all tested cases. The breadcrumbs in zed editor fails to provide the full path some times. For instance it'll fail to do so if to uncomment the very last extension (I believe extension itself are the key thing here).

Here's the same issue occurred in my prod code. Any ideas why this could happens and how to fix it?

Screenshot 2024-08-23 at 17 15 44

ps: it's more a question than the issue, since I'm not sure if it's grammar but zed's issue.

alex-pinkus commented 3 months ago

I’m not sure I understand the issue. What is it that’s wrong in that screenshot?

yaroslavyaroslav commented 3 months ago

In the top window pane it should be Textures/VertexDescriptor.swift › extension MTLVertexDecriptor > var defaultLayout: MTLVertexDescriptor?. It skips the class extension scope.