Skip to content

Don't emit nested objects as document symbols #859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: feature/method-symbols
Choose a base branch
from

Conversation

lionel-
Copy link
Contributor

@lionel- lionel- commented Jun 27, 2025

Branched from #858
Addresses posit-dev/positron#8330

Objects assigned in {} blocks are currently emitted as document symbols, which causes the ouline and document symbol search (@ prefix in command palette) 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

This is controllable via a new "positron.r.symbols.includeAssignmentsInBlocks setting. By default we don't include these nested assignments.

QA Notes

You should see the new setting in the config UI:

Screenshot 2025-07-05 at 09 44 17

It's documented that files need to be reopened (they can also be changed) or the server restarted for this setting to take effect.

@lionel- lionel- force-pushed the feature/method-symbols branch from 698f1a3 to f67b10f Compare June 30, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant