나는 두 가지 기능:doAsyncStuff 및 doNextStep. 할 수 있는 방법 안 doNextStep 을 실행한 후에만 doAsyncStuff 다.
나는 그런 것 같지만 그것은 도움이 되지 않았: doAsyncStuff().then(_ => doNextStep());
async function doAsyncStuff() {
if (vscode.workspace.workspaceFolders) {
vscode.workspace.workspaceFolders.forEach(async (e) => {
for (const [name, type] of await vscode.workspace.fs.readDirectory(e.uri)) {
console.log(name);
}
});
}
return true;
}
function doNextStep() {
console.log('next step');
}