MCPcopy Create free account
hub / github.com/continuedev/continue / showTutorial

Function showTutorial

extensions/vscode/src/util/tutorial.ts:15–33  ·  view source on GitHub ↗
(ide: IDE)

Source from the content-addressed store, hash-verified

13}
14
15export async function showTutorial(ide: IDE) {
16 const tutorialUri = getTutorialUri();
17 // Ensure keyboard shortcuts match OS
18 if (process.platform !== "darwin") {
19 let tutorialContent = await ide.readFile(tutorialUri.toString());
20 tutorialContent = tutorialContent
21 .replaceAll("[Cmd + L]", "[Ctrl + L]")
22 .replaceAll("[Cmd + Shift + L]", "[Ctrl + Shift + L]")
23 .replaceAll("[Cmd + I]", "[Ctrl + I]")
24 .replaceAll("⌘", "^");
25
26 await ide.writeFile(tutorialUri.toString(), tutorialContent);
27 }
28
29 const doc = await vscode.workspace.openTextDocument(tutorialUri);
30 await vscode.window.showTextDocument(doc, {
31 preview: false,
32 });
33}

Callers 1

constructorMethod · 0.90

Calls 3

getTutorialUriFunction · 0.85
readFileMethod · 0.65
writeFileMethod · 0.65

Tested by

no test coverage detected