feat: add global tasks folder
This commit is contained in:
@@ -7,18 +7,18 @@ export class VscodeConfigProvider implements IConfigProvider {
|
||||
const workspaceRoot = vscode.workspace.workspaceFolders?.[0]?.uri.fsPath;
|
||||
if (!workspaceRoot) return undefined;
|
||||
|
||||
const config = vscode.workspace.getConfiguration("projectTasks");
|
||||
const config = vscode.workspace.getConfiguration("xboctFlow");
|
||||
const relativePath = config.get<string>("projectPath") ?? ".vscode/tasks";
|
||||
return path.join(workspaceRoot, relativePath);
|
||||
}
|
||||
|
||||
getGlobalTaskPath(): string | undefined {
|
||||
const config = vscode.workspace.getConfiguration("projectTasks");
|
||||
const config = vscode.workspace.getConfiguration("xboctFlow");
|
||||
return config.get<string>("globalPath") || undefined;
|
||||
}
|
||||
|
||||
getFileExtension(): string {
|
||||
const config = vscode.workspace.getConfiguration("projectTasks");
|
||||
const config = vscode.workspace.getConfiguration("xboctFlow");
|
||||
return config.get<string>("fileExtension") ?? ".task.md";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user