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.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/editors/code/src/commands.ts b/editors/code/src/commands.ts
index f0f9fab1c6..2b0b300106 100644
--- a/editors/code/src/commands.ts
+++ b/editors/code/src/commands.ts
@@ -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,
+ );
+ };
+}