From a4b0ce07f80773146c72004befc77be4e576c677 Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Mon, 13 Apr 2020 00:05:33 +0800 Subject: Add config for proc_macro --- editors/code/package.json | 10 ++++++++++ editors/code/src/config.ts | 1 + 2 files changed, 11 insertions(+) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index 5f73c8d83..d39a9b6d8 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -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" } } }, diff --git a/editors/code/src/config.ts b/editors/code/src/config.ts index 35a05131c..3b2eec8ba 100644 --- a/editors/code/src/config.ts +++ b/editors/code/src/config.ts @@ -12,6 +12,7 @@ export class Config { private readonly requiresReloadOpts = [ "serverPath", "cargo", + "procMacro", "files", "highlighting", "updates.channel", -- cgit v1.2.3 From 177becea98bddcd995a2abec59c6b60bac6b5a2b Mon Sep 17 00:00:00 2001 From: Edwin Cheng Date: Thu, 16 Apr 2020 21:13:57 +0800 Subject: Add proc-macro cli command for rust-analyzer --- editors/code/package.json | 5 ----- 1 file changed, 5 deletions(-) (limited to 'editors/code') diff --git a/editors/code/package.json b/editors/code/package.json index d39a9b6d8..5ce59e54a 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -393,11 +393,6 @@ "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" } } }, -- cgit v1.2.3