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

Rename rust-analyzer.statusBar.documentSelector to showStatusBar, add "always" and "never" options. #18722

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markmurphydev
Copy link
Contributor

Closes #18665.

rust-analyzer.statusBar.showStatusBar can be "always", "never" or { "documentSelector": <DocumentSelector>[] }.
I added DocumentSelector.notebookType and .scheme as possible properties. The array is passed directly to vscode.languages.match(documentSelector, editor.document), so the properties should Just Work.

Manually testing, "always", "never", and { "documentSelector": ... } seemed to work correctly.

I think the renamed setting is clearer, but it will break previous statusBar.documentSelector configs.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 19, 2024
@Veykril
Copy link
Member

Veykril commented Dec 20, 2024

CI is red

@Veykril Veykril enabled auto-merge December 20, 2024 07:33
auto-merge was automatically disabled December 20, 2024 21:41

Head branch was pushed to by a user without write access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add setting to always show status bar item in vscode
3 participants