about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/editors/code/package.json
diff options
context:
space:
mode:
authorLukas Wirth <lukastw97@gmail.com>2024-12-03 14:53:35 +0000
committerGitHub <noreply@github.com>2024-12-03 14:53:35 +0000
commitf4c968ac35dec6e2d73bb678d4c45a1d4517207f (patch)
tree113ef0b9473ebf1fb8cff45b4691d91e4acd1b09 /src/tools/rust-analyzer/editors/code/package.json
parentf555fc42b762008e4146fd40478d0d25259af0ec (diff)
parent97feb0334493d870e09f7a5a02c6d320a7e8a4ae (diff)
downloadrust-f4c968ac35dec6e2d73bb678d4c45a1d4517207f.tar.gz
rust-f4c968ac35dec6e2d73bb678d4c45a1d4517207f.zip
Merge pull request #18592 from darichey/status-bar-visibility
vscode: Only show status bar item in relevant files
Diffstat (limited to 'src/tools/rust-analyzer/editors/code/package.json')
-rw-r--r--src/tools/rust-analyzer/editors/code/package.json35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/editors/code/package.json b/src/tools/rust-analyzer/editors/code/package.json
index 82c43b76fdd..46f7803c8a8 100644
--- a/src/tools/rust-analyzer/editors/code/package.json
+++ b/src/tools/rust-analyzer/editors/code/package.json
@@ -425,6 +425,41 @@
                         ],
                         "default": "openLogs",
                         "markdownDescription": "Action to run when clicking the extension status bar item."
+                    },
+                    "rust-analyzer.statusBar.documentSelector": {
+                        "type": [
+                            "array",
+                            "null"
+                        ],
+                        "items": {
+                            "type": "object",
+                            "properties": {
+                                "language": {
+                                    "type": [
+                                        "string",
+                                        "null"
+                                    ]
+                                },
+                                "pattern": {
+                                    "type": [
+                                        "string",
+                                        "null"
+                                    ]
+                                }
+                            }
+                        },
+                        "default": [
+                            {
+                                "language": "rust"
+                            },
+                            {
+                                "pattern": "**/Cargo.toml"
+                            },
+                            {
+                                "pattern": "**/Cargo.lock"
+                            }
+                        ],
+                        "markdownDescription": "Determines when to show the extension status bar item based on the currently open file. Use `{ \"pattern\": \"**\" }` to always show. Use `null` to never show."
                     }
                 }
             },