rename from proc_macro_processes to procMacro_processes

This commit is contained in:
bit-aloo 2026-01-05 10:32:00 +05:30
parent b49417eea9
commit a81da31f40
No known key found for this signature in database
3 changed files with 27 additions and 27 deletions

View file

@ -387,14 +387,14 @@ config_data! {
/// Enable support for procedural macros, implies `#rust-analyzer.cargo.buildScripts.enable#`.
procMacro_enable: bool = true,
/// Internal config, path to proc-macro server executable.
procMacro_server: Option<Utf8PathBuf> = None,
/// Number of proc-macro server processes to spawn.
///
/// Controls how many independent `proc-macro-srv` processes rust-analyzer
/// runs in parallel to handle macro expansion.
proc_macro_processes: NumProcesses = NumProcesses::Concrete(1),
procMacro_processes: NumProcesses = NumProcesses::Concrete(1),
/// Internal config, path to proc-macro server executable.
procMacro_server: Option<Utf8PathBuf> = None,
/// The path where to save memory profiling output.
///
@ -2648,7 +2648,7 @@ impl Config {
}
pub fn proc_macro_num_processes(&self) -> usize {
match self.proc_macro_processes() {
match self.procMacro_processes() {
NumProcesses::Concrete(0) | NumProcesses::Physical => num_cpus::get_physical(),
&NumProcesses::Concrete(n) => n,
}

View file

@ -1318,14 +1318,7 @@ These proc-macros will be ignored when trying to expand them.
This config takes a map of crate names with the exported proc-macro names to ignore as values.
## rust-analyzer.procMacro.server {#procMacro.server}
Default: `null`
Internal config, path to proc-macro server executable.
## rust-analyzer.proc.macro.processes {#proc.macro.processes}
## rust-analyzer.procMacro.processes {#procMacro.processes}
Default: `1`
@ -1335,6 +1328,13 @@ Controls how many independent `proc-macro-srv` processes rust-analyzer
runs in parallel to handle macro expansion.
## rust-analyzer.procMacro.server {#procMacro.server}
Default: `null`
Internal config, path to proc-macro server executable.
## rust-analyzer.profiling.memoryProfile {#profiling.memoryProfile}
Default: `null`

View file

@ -2773,20 +2773,7 @@
{
"title": "Proc Macro",
"properties": {
"rust-analyzer.procMacro.server": {
"markdownDescription": "Internal config, path to proc-macro server executable.",
"default": null,
"type": [
"null",
"string"
]
}
}
},
{
"title": "Proc",
"properties": {
"rust-analyzer.proc.macro.processes": {
"rust-analyzer.procMacro.processes": {
"markdownDescription": "Number of proc-macro server processes to spawn.\n\nControls how many independent `proc-macro-srv` processes rust-analyzer\nruns in parallel to handle macro expansion.",
"default": 1,
"anyOf": [
@ -2808,6 +2795,19 @@
}
}
},
{
"title": "Proc Macro",
"properties": {
"rust-analyzer.procMacro.server": {
"markdownDescription": "Internal config, path to proc-macro server executable.",
"default": null,
"type": [
"null",
"string"
]
}
}
},
{
"title": "Profiling",
"properties": {