Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--docs/user/generated_config.adoc8
-rw-r--r--editors/code/package.json13
2 files changed, 12 insertions, 9 deletions
diff --git a/docs/user/generated_config.adoc b/docs/user/generated_config.adoc
index 5b86766aa8..c6f5852f87 100644
--- a/docs/user/generated_config.adoc
+++ b/docs/user/generated_config.adoc
@@ -94,10 +94,10 @@ avoid checking unnecessary things.
--
Default:
----
-{
- "miri": null,
- "debug_assertions": null
-}
+[
+ "debug_assertion",
+ "miri"
+]
----
List of cfg options to enable with the given values.
diff --git a/editors/code/package.json b/editors/code/package.json
index 80246bf3fe..6cb74a94a0 100644
--- a/editors/code/package.json
+++ b/editors/code/package.json
@@ -791,11 +791,14 @@
"properties": {
"rust-analyzer.cargo.cfgs": {
"markdownDescription": "List of cfg options to enable with the given values.",
- "default": {
- "miri": null,
- "debug_assertions": null
- },
- "type": "object"
+ "default": [
+ "debug_assertion",
+ "miri"
+ ],
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
}
}
},