提交 6ec78d65 编写于 作者: I isidor

use pfs.statLink

上级 92e7f729
......@@ -912,8 +912,8 @@ export class FileService implements IFileService {
private toStatResolver(resource: uri): TPromise<StatResolver> {
const absolutePath = this.toAbsolutePath(resource);
return pfs.stat(absolutePath).then(stat => {
return new StatResolver(resource, false, stat.isDirectory(), stat.mtime.getTime(), stat.size, this.options.verboseLogging ? this.options.errorLogger : void 0);
return pfs.statLink(absolutePath).then(statAndIsLink => {
return new StatResolver(resource, statAndIsLink.isSymbolicLink, statAndIsLink.stat.isDirectory(), statAndIsLink.stat.mtime.getTime(), statAndIsLink.stat.size, this.options.verboseLogging ? this.options.errorLogger : void 0);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册