in src/tasks.ts [155:184]
private async getWorkspaceTasks(folder: vscode.WorkspaceFolder): Promise<vscode.Task[]> {
if (folder.uri.scheme !== 'file') {
return emptyTasks;
}
const rootPath = folder.uri.fsPath;
const optionFilePath = path.join(rootPath, defaultOptionsFile);
if (!(await this.exists(optionFilePath))) {
return emptyTasks;
}
try {
const result: vscode.Task[] = [];
let t = this.createTask(
'Run analysis',
folder,
undefined,
undefined,
undefined,
undefined,
undefined
);
result.push(t);
return result;
} catch (e) {
return emptyTasks;
}
}