|
11 | 11 | "\t\t\tconst commandId = 'vscode.didact.register';", |
12 | 12 | "\t\t\tconst tutorialName = `${1:Your First Integration}`; // replace this with the name of your integration to appear in the Didact view", |
13 | 13 | "\t\t\tconst tutorialPath = path.resolve(context.extensionPath, `${2:./path/to/tutorial.didact.md|adoc}`); // replace this path with the location of your Didact file like ./path/to/tutorial.didact.md or ./path/to/tutorial.didact.adoc", |
14 | | - "\t\t\tconst tutorialUri = vscode.Uri.file(`${tutorialPath\\}`);", |
| 14 | + "\t\t\tconst tutorialUri = vscode.Uri.file(context.asAbsolutePath(`${tutorialPath\\}`));", |
| 15 | + "\t\t\t// or pass an actual https/file uri to use instead", |
| 16 | + "\t\t\t// const tutorialURL = 'https://my.domain.for.a.didact.file.org/path/to/tutorial.didact.md|adoc'; // replace this with the https/file uri for your tutorial", |
| 17 | + "\t\t\t// const tutorialUri = vscode.Uri.parse(`${tutorialURL\\}`);", |
15 | 18 | "\t\t\tconst tutorialCategory = `${3:Your Tutorial Category}`; // replace this with the name of the category for your tutorial", |
16 | 19 | "", |
17 | | - "\t\t\t// then pass name, uri, and category", |
| 20 | + "\t\t\t// then pass name, generated uri, and category", |
18 | 21 | "\t\t\tawait vscode.commands.executeCommand(", |
19 | 22 | "\t\t\t\tcommandId,", |
20 | 23 | "\t\t\t\ttutorialName, ", |
21 | | - "\t\t\t\ttutorialUri,", |
| 24 | + "\t\t\t\ttutorialUri.fsPath,", |
22 | 25 | "\t\t\t\ttutorialCategory);", |
23 | 26 | "\t\t}", |
24 | 27 | "\t} catch (error) {", |
|
0 commit comments