Skip to content
Discussion options

You must be logged in to vote

Looks like rust-analyzer has a default bias towards structs that the local symbol picker does not share.

With a file generated by this script:

#!/usr/bin/env python3

n = 300
with open("main.rs", "w") as file:
    file.write('fn main() {println!("asdf");}\n')
    for i in range(n):
        file.write('fn a' + str(i) + '_snake_func() {println!("asdf");}\n')
        file.write('fn a' + str(i) + 'CamelFunc() {println!("asdf");}\n')
        file.write('struct a' + str(i) + '_snake_struct();\n')
        file.write('struct a' + str(i) + 'CamelStruct();\n')

Workspace symbol picker:

Single-file symbol picker:


Edit:

Currently trying to apply the configuration option for "rust-analyzer.workspac…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@willhansen
Comment options

@willhansen
Comment options

@gabydd
Comment options

gabydd Aug 8, 2023
Collaborator

@willhansen
Comment options

Answer selected by willhansen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
3 participants
Converted from issue

This discussion was converted from issue #7851 on August 08, 2023 01:26.