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
48.05k stars 2.84k forks source link

Outline view show wrong structure of TypeScript class #4553

Open futurist opened 1 year ago

futurist commented 1 year ago

Check for existing issues

Describe the bug / provide steps to reproduce it

The repo: https://github.com/microsoft/vscode The file: https://github.com/microsoft/vscode/blob/main/src/vs/base/common/lifecycle.ts The Bug: displayed the incorrect outline of the typescript class, see the attached image.

Environment

MacOS 13.4 Zed Preview 0.97.5

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

image

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.

No response

coolemur commented 6 months ago

+1. Outline view is weird. Not only in ts files, but in other filetypes as well.

For comparison, VSC lists all members of .tsx, while Zed outline shows only top-nested function (usually single member) and skips all members that are inside that function. Html outline doesn't work at all, .svelte as well.