mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 04:18:20 +00:00
Provide an config option to not set cfg(test)
This commit is contained in:
parent
546339a7be
commit
4ea09dd9f6
16 changed files with 73 additions and 15 deletions
|
|
@ -853,6 +853,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "cfg",
|
||||
"properties": {
|
||||
"rust-analyzer.cfg.setTest": {
|
||||
"markdownDescription": "Set `cfg(test)` for local crates. Defaults to true.",
|
||||
"default": true,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"title": "general",
|
||||
"properties": {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ export class Config {
|
|||
"serverPath",
|
||||
"server",
|
||||
"files",
|
||||
"cfg",
|
||||
].map((opt) => `${this.rootSection}.${opt}`);
|
||||
|
||||
private readonly requiresWindowReloadOpts = ["testExplorer"].map(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue