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

Enum variants in symbol search #17468

Open
volsa opened this issue Jun 21, 2024 · 0 comments
Open

Enum variants in symbol search #17468

volsa opened this issue Jun 21, 2024 · 0 comments
Labels
C-feature Category: feature request

Comments

@volsa
Copy link
Contributor

volsa commented Jun 21, 2024

Searching for an enum variant via symbol search currently yields no results. For example when searching for the workspace symbol Bar I would expect it to find the enum variant defined in Foo as defined below. I was looking in the documentation for any tips but tweaking any of these configs rust-analyzer.workspace.symbol.search.* didn't change the behavior for the given use-case. Did I miss something? Can this behavior be changed? If not is this intentional?

enum Foo {
    Bar { id: i32 },
    Baz { name: String },
}
@volsa volsa added the C-feature Category: feature request label Jun 21, 2024
@volsa volsa changed the title Include enum variants in symbol index Enum variants in symbol search Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature request
Projects
None yet
Development

No branches or pull requests

1 participant