Skip to content

Commit 27c076a

Browse files
committed
Auto merge of rust-lang#14409 - Veykril:vscode-reload-proc, r=Veykril
minor: Add user facing command for reloading proc-macros in VSCode
2 parents 82ec458 + 586db07 commit 27c076a

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

docs/dev/lsp-extensions.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,16 @@ Returns internal status message, mostly for debugging purposes.
422422

423423
Reloads project information (that is, re-executes `cargo metadata`).
424424

425+
## Reload proc-macros
426+
427+
**Method:** `rust-analyzer/reloadProcMacros`
428+
429+
**Request:** `null`
430+
431+
**Response:** `null`
432+
433+
Rebuilds build scripts and proc-macros, and runs the build scripts to reseed the build data.
434+
425435
## Server Status
426436

427437
**Experimental Client Capability:** `{ "serverStatusNotification": boolean }`

editors/code/package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@
199199
"title": "Reload workspace",
200200
"category": "rust-analyzer"
201201
},
202+
{
203+
"command": "rust-analyzer.reloadProcMacros",
204+
"title": "Reload proc macros and build scripts",
205+
"category": "rust-analyzer"
206+
},
202207
{
203208
"command": "rust-analyzer.addProject",
204209
"title": "Add current file's crate to workspace",

0 commit comments

Comments
 (0)