Skip to content

Refactor Preview window shows every time when discoverConfig is in use #20982

@brunowonka

Description

@brunowonka

Description: We recently enabled discoverConfig in the Fuchsia tree with a custom script to accelerate symbol indexing. However, whenever I pass in that setting to rust-analyzer and I attempt to run a rename action from VSCode, it opens up the preview pane (regardless of my VSCode settings for it) with no lines selected.

This sounds somewhat related to #17422, I suspect that because of the partial workspace load we can't be sure we shouldn't be refactoring symbols outside of the loaded graph. But this makes it a rather poor experience (especially if the symbol I'm trying to rename is pub(crate) or lower -- meaning we should have full view and allow a refactor.

rust-analyzer version:

rust-analyzer --version
rust-analyzer true (fca718c0f2 2025-11-01)

editor or extension: VSCode
relevant settings: rust-analyzer.workspace.discoverConfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions