Skip to content
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

Convert symbols request away from the linearizer #1623

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Convert symbols request away from the linearizer #1623

merged 1 commit into from
Sep 22, 2023

Conversation

jneem
Copy link
Member

@jneem jneem commented Sep 21, 2023

I'm not completely sure about what should count as a symbol. Right now, let bindings and record fields create "symbols" but function arguments do not.

Returning all locally scoped symbols feels a little noisy to me right now. Maybe the best way to improve it would be to make a symbol hierarchy instead of a flat list. LSP supports this, but we aren't doing it yet.

@github-actions github-actions bot temporarily deployed to pull request September 21, 2023 19:16 Inactive
@jneem jneem added this pull request to the merge queue Sep 22, 2023
Merged via the queue into master with commit bcb0f71 Sep 22, 2023
5 checks passed
@jneem jneem deleted the symbols branch September 22, 2023 12:40
@yannham
Copy link
Member

yannham commented Sep 22, 2023

@jneem : right, I wonder if we should even put the symbols defined within let-binding at all. Usually, in my limited experience, you're rather looking for record fields - although as you say, even there, it's not clear for the LSP which one are "more top-level" than the others, because Nickel doesn't have a notion of top-level symbols. But returning all the locally defined variable does feel noisy in practice.

@jneem
Copy link
Member Author

jneem commented Sep 22, 2023

I filed #1627 for future improvements.

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.

3 participants