about summary refs log tree commit diff
path: root/editors/code
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-05-30 12:00:14 +0000
committerbors <bors@rust-lang.org>2023-05-30 12:00:14 +0000
commite8dbb8e2e06d6fb0cb97c98eef27121e81370c93 (patch)
tree5b8884f022aa6ddb8fd992d8ebb48430e810d287 /editors/code
parent51c3ab5b85189b2430e438954dd792825c07ac87 (diff)
parentcea84427e00ad76b8400d45a84347b65d27dcef3 (diff)
downloadrust-e8dbb8e2e06d6fb0cb97c98eef27121e81370c93.tar.gz
rust-e8dbb8e2e06d6fb0cb97c98eef27121e81370c93.zip
Auto merge of #14911 - Veykril:config-cfg, r=Veykril
Allow setting cfgs

Fixes https://github.com/rust-lang/rust-analyzer/issues/14365
Diffstat (limited to 'editors/code')
-rw-r--r--editors/code/package.json7
1 files changed, 6 insertions, 1 deletions
diff --git a/editors/code/package.json b/editors/code/package.json
index 390508b883e..aa63c40c0d2 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -553,6 +553,11 @@
                     "default": true,
                     "type": "boolean"
                 },
+                "rust-analyzer.cargo.cfgs": {
+                    "markdownDescription": "List of cfg options to enable with the given values.",
+                    "default": {},
+                    "type": "object"
+                },
                 "rust-analyzer.cargo.extraArgs": {
                     "markdownDescription": "Extra arguments that are passed to every cargo invocation.",
                     "default": [],
@@ -617,7 +622,7 @@
                     ]
                 },
                 "rust-analyzer.cargo.unsetTest": {
-                    "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.",
+                    "markdownDescription": "Unsets the implicit `#[cfg(test)]` for the specified crates.",
                     "default": [
                         "core"
                     ],