Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'editors/code/src/commands.ts')
| -rw-r--r-- | editors/code/src/commands.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts index c9385361f8..fe006a63e2 100644 --- a/editors/code/src/commands.ts +++ b/editors/code/src/commands.ts @@ -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; |