mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-17 18:57:04 +00:00
Add landing/faq walkthroughs and commands for quick access
This commit is contained in:
parent
4e836c622a
commit
57497645f8
3 changed files with 128 additions and 0 deletions
|
|
@ -1502,3 +1502,23 @@ export function toggleLSPLogs(ctx: Ctx): Cmd {
|
|||
}
|
||||
};
|
||||
}
|
||||
|
||||
export function openWalkthrough(_: Ctx): Cmd {
|
||||
return async () => {
|
||||
await vscode.commands.executeCommand(
|
||||
"workbench.action.openWalkthrough",
|
||||
"rust-lang.rust-analyzer#landing",
|
||||
false,
|
||||
);
|
||||
};
|
||||
}
|
||||
|
||||
export function openFAQ(_: Ctx): Cmd {
|
||||
return async () => {
|
||||
await vscode.commands.executeCommand(
|
||||
"workbench.action.openWalkthrough",
|
||||
"rust-lang.rust-analyzer#faq",
|
||||
true,
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue