Skip to content

Commit

Permalink
minor: Add user facing command for reloading proc-macros in VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
Veykril committed Mar 25, 2023
1 parent d1c7984 commit 586db07
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/dev/lsp-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,16 @@ Returns internal status message, mostly for debugging purposes.

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

**Experimental Client Capability:** `{ "serverStatusNotification": boolean }`
Expand Down
5 changes: 5 additions & 0 deletions editors/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@
"title": "Reload workspace",
"category": "rust-analyzer"
},
{
"command": "rust-analyzer.reloadProcMacros",
"title": "Reload proc macros and build scripts",
"category": "rust-analyzer"
},
{
"command": "rust-analyzer.addProject",
"title": "Add current file's crate to workspace",
Expand Down

0 comments on commit 586db07

Please sign in to comment.