mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Auto merge of #14409 - Veykril:vscode-reload-proc, r=Veykril
minor: Add user facing command for reloading proc-macros in VSCode
This commit is contained in:
commit
27c076a367
@ -422,6 +422,16 @@ Returns internal status message, mostly for debugging purposes.
|
|||||||
|
|
||||||
Reloads project information (that is, re-executes `cargo metadata`).
|
Reloads project information (that is, re-executes `cargo metadata`).
|
||||||
|
|
||||||
|
## Reload proc-macros
|
||||||
|
|
||||||
|
**Method:** `rust-analyzer/reloadProcMacros`
|
||||||
|
|
||||||
|
**Request:** `null`
|
||||||
|
|
||||||
|
**Response:** `null`
|
||||||
|
|
||||||
|
Rebuilds build scripts and proc-macros, and runs the build scripts to reseed the build data.
|
||||||
|
|
||||||
## Server Status
|
## Server Status
|
||||||
|
|
||||||
**Experimental Client Capability:** `{ "serverStatusNotification": boolean }`
|
**Experimental Client Capability:** `{ "serverStatusNotification": boolean }`
|
||||||
|
@ -199,6 +199,11 @@
|
|||||||
"title": "Reload workspace",
|
"title": "Reload workspace",
|
||||||
"category": "rust-analyzer"
|
"category": "rust-analyzer"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"command": "rust-analyzer.reloadProcMacros",
|
||||||
|
"title": "Reload proc macros and build scripts",
|
||||||
|
"category": "rust-analyzer"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"command": "rust-analyzer.addProject",
|
"command": "rust-analyzer.addProject",
|
||||||
"title": "Add current file's crate to workspace",
|
"title": "Add current file's crate to workspace",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user