~Easy change and~ we should do this. https://code.visualstudio.com/updates/v1_37#_vscodeworkspacefs To validate: use the extension and verify that nothing breaks. :)
Activity
karrtikr commentedon Aug 28, 2019
Try to use the
vscode.workspace.fsAPI instead offsandfs-extrawherever we can.For the things that we can't do with the API, make a list of those things and open issues in
vscode.[-]Use VS Code FS Api[/-][+]Use VS Code FS API[/+]ericsnowcurrently commentedon Nov 11, 2019
I've opened upstream issues.
bugs:
FileStattime resolution - vscode.workspace.fs.stat(): FileStat only has 1 second resolution. vscode#84526FileStat.ctime == 0- vscode.workspace.fs.stat(): wrong creation time. vscode#84525FileType.File- vscode.workspace.fs.stat(): sockets identified as "regular" files. vscode#84524feature requests:
original - Add more functionality to the "vscode.workspace.fs" API. vscode#84175chmod()- Add vscode.workspace.fs.chmod(). vscode#84513lstat()- Support stat() for symbolic links themselves. vscode#84514createWriteStream()- Add vscode.workspace.fs.createWriteStream(). vscode#84515mkdirp()- Add vscode.workspace.fs.mkdirp(). vscode#84516mkdtemp()- Add vscode.workspace.fs.mkdtemp(). vscode#84517glob()- Add more functionality to the "vscode.workspace.fs" API. vscode#84175ericsnowcurrently commentedon Nov 12, 2019
Any workarounds or missing functionality is covered in #8533.
Update the code base to use IFileSystem instead of fs and fs-extra. (#…
Use new VS Code filesystem API. (#8307)