You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For #142078 , I am trying to replace pfs with IFileService.
Here I need to read the mtime of a directory. I could not find IFileService.stat so I am trying to use IFileService.resolve().
However, I have noticed that IFileService.resolve() returns all children for a directory, which in the case of the builtin extensions directory is about 100 children, and I am concerned that this might be costly. Is there a way to stat a directory without reading its children?
The text was updated successfully, but these errors were encountered:
@bpasero is your change relevant / applicable to extensions, either ones that implement a FileSystemProvider or ones that use vscode.workspace.fs.stat() to learn about a folder?
@gjsjohnmurray extensions have a more primitive form of API and can use vscode.fs.stat which is pretty much the same as the internal API I now added.
In March debt week I might see to adopt this new IFileService.stat method over IFileService.resolve given it is probably faster in most cases where the children are not required.
For #142078 , I am trying to replace
pfs
withIFileService
.Here I need to read the
mtime
of a directory. I could not findIFileService.stat
so I am trying to useIFileService.resolve()
.However, I have noticed that
IFileService.resolve()
returns all children for a directory, which in the case of the builtin extensions directory is about 100 children, and I am concerned that this might be costly. Is there a way to stat a directory without reading its children?The text was updated successfully, but these errors were encountered: