-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Description
We currently register all assigned objects as document symbols.
It definitely makes sense to do this with top-level variables but I'm not sure that we should do this in nested contexts like functions. This causes the outline to be quite busy:
Screen.Recording.2025-06-27.at.15.18.45.mov
Here is how it looks like if we only emit top-level objects:
Screen.Recording.2025-06-27.at.15.20.35.mov
The Rust and Python lang supports behave like the latter. For typescript, the outline is like the former. I initially thought we should implement the leaner outline but now I'm honestly not sure. Edit: I think we should have the lean outline so it can better serve its function of providing a structure of the document rather than being a collection of jump points.