提交 31dc887d 编写于 作者: J Joao

careful with Promise(async () =>

上级 fc0fb676
......@@ -163,15 +163,14 @@ export class ExtensionHostMain {
return this._diskSearch.search(query).then(result => result.results.length ? p : undefined);
} else {
// find exact path
return new TPromise<string>(async resolve => {
return (async resolve => {
for (const { fsPath } of this._workspace.roots) {
if (await pfs.exists(join(fsPath, p))) {
resolve(p);
return;
return p;
}
}
resolve(undefined);
});
return undefined;
})();
}
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册