提交 122615ef 编写于 作者: B Benjamin Pasero

files - make exists as fast as possible with our current file system provider API

上级 5535ee44
......@@ -253,8 +253,12 @@ export class FileService extends Disposable implements IFileService {
}
async exists(resource: URI): Promise<boolean> {
const provider = await this.withProvider(resource);
try {
return !!(await this.resolve(resource));
const stat = await provider.stat(resource);
return !!stat;
} catch (error) {
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册