mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-22 11:24:24 +00:00
internal: add "Shuffle Crate Graph" command
This commit is contained in:
parent
9ae3158292
commit
deb5c1426d
10 changed files with 106 additions and 0 deletions
|
@ -85,6 +85,15 @@ export function memoryUsage(ctx: Ctx): Cmd {
|
|||
};
|
||||
}
|
||||
|
||||
export function shuffleCrateGraph(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
const client = ctx.client;
|
||||
if (!client) return;
|
||||
|
||||
await client.sendRequest(ra.shuffleCrateGraph);
|
||||
};
|
||||
}
|
||||
|
||||
export function matchingBrace(ctx: Ctx): Cmd {
|
||||
return async () => {
|
||||
const editor = ctx.activeRustEditor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue