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

Rust-analyzer status bar disappears when the active opened file tab in VSCode is a non-Rust file #18970

Closed
stormshield-kg opened this issue Jan 18, 2025 · 1 comment
Labels
C-bug Category: bug

Comments

@stormshield-kg
Copy link

rust-analyzer version: v0.4.2270
rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VSCode 1.96.3 with rust-analyzer extension v0.4.2270

The r-a status bar disappears even when there are other tabs opened with Rust files on a Rust workspace.

I think it is better that the r-a status bar doesn't disappear if the server has been started (which is always the case even on non-Rust workspaces), so that the server can be easily stopped/restarted for the current window by clicking on the status bar.

@stormshield-kg stormshield-kg added the C-bug Category: bug label Jan 18, 2025
@davidbarsky
Copy link
Contributor

This was a deliberate design decision to paper over the fact that rust-analyzer activated a little too eagerly in multi-language repositories, especially when few other language servers don't have a such a prominent visual status bar. It's the been source of many issues.

We expect that with #17537, we should be able to be more precise with regard to rust-analyzer activating. In the meantime, I think setting "rust-analyzer.statusBar.showStatusBar" to "always" should fix your immediate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants