Add config for proc_macro

This commit is contained in:
Edwin Cheng 2020-04-13 00:05:33 +08:00
parent 22e33f308a
commit a4b0ce07f8
5 changed files with 22 additions and 1 deletions

View file

@ -388,6 +388,16 @@
"description": "Enable logging of VS Code extensions itself",
"type": "boolean",
"default": false
},
"rust-analyzer.procMacro.enabled": {
"description": "Enable Proc macro support, cargo.loadOutDirsFromCheck must be enabled.",
"type": "boolean",
"default": false
},
"rust-analyzer.procMacro.serverPath": {
"description": "Proc macro server path",
"type": "string",
"default": "ra_proc_macro_srv"
}
}
},

View file

@ -12,6 +12,7 @@ export class Config {
private readonly requiresReloadOpts = [
"serverPath",
"cargo",
"procMacro",
"files",
"highlighting",
"updates.channel",