From 8b77e2692cd97552b1b8d66eb51cec69695b3a5b Mon Sep 17 00:00:00 2001 From: Jade Date: Sun, 13 Jun 2021 21:41:46 -0700 Subject: Implement a config override for the default #[cfg(test)] in cargo crates Fixes crates which vanish when the 'test' cfg atom is set. Fix #7243. Fix #9203. Fix #7225. --- editors/code/package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'editors') diff --git a/editors/code/package.json b/editors/code/package.json index c077bd2c0..b20a39a95 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -452,6 +452,16 @@ "default": false, "type": "boolean" }, + "rust-analyzer.cargo.unsetTest": { + "markdownDescription": "Unsets `#[cfg(test)]` for the specified crates.", + "default": [ + "core" + ], + "type": "array", + "items": { + "type": "string" + } + }, "rust-analyzer.cargo.features": { "markdownDescription": "List of features to activate.", "default": [], -- cgit v1.2.3