configuration for custom tour location
This commit is contained in:
Родитель
f3a5ae16c2
Коммит
726cd896f9
|
@ -60,6 +60,11 @@
|
|||
"type": "boolean",
|
||||
"default": true,
|
||||
"description": "Specifies whether or not to show tour markers in the editor gutter."
|
||||
},
|
||||
"codetour.customTourLocation": {
|
||||
"type": "string",
|
||||
"default": null,
|
||||
"description": "Specifies a custom location to use when discovering tours."
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -22,6 +22,13 @@ const TOUR_CONTEXT = {
|
|||
isWeb: vscode.env.uiKind === vscode.UIKind.Web
|
||||
};
|
||||
|
||||
const customDirectory = vscode.workspace
|
||||
.getConfiguration("codetour")
|
||||
.get("promptForWorkspaceTours", null);
|
||||
if (customDirectory) {
|
||||
SUB_TOUR_DIRECTORIES.push(customDirectory);
|
||||
}
|
||||
|
||||
export async function discoverTours(): Promise<void> {
|
||||
const tours = await Promise.all(
|
||||
vscode.workspace.workspaceFolders!.map(async workspaceFolder => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче