[FileSystemProvider] Provide API for accessing from other extensions via URIs #51528
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
remote
Remote system operations issues
Currently an extension author is "only" able to register an own FileSystemProvider by using
vscode.workspace.registerFileSystemProvider()
function.But currently there seems to be no way to access them from "outside" / from other extensions.
I currently have requests to support linters and formatters in my extension vscode-remote-workspace, but I am not sure if this should not be the work of authors, who have created these linters and formatters.
My idea is to create a new namespace like
vscode.fs
, similar to Node.js:Maybe there should (also or only) be some public functions to access these providers, without needing the objects, which might be better.
Files and directories (also local ones) could be accessed by Uris.
As you can see, the functions are mappers of the methods of FileSystemProvider interface, which would (re-)throw their exceptions, if occurred.
If a scheme is not supported, and those are tried to be used, a new kind of FileSystemError, like 'SchemeNotSupported' exception should be thrown,
Authors could use external FileSystemProviders using the common way, by uusing the
extensionDependencies
property in theirpackage.json
:Ok, some functions name are a little bit "strange", but this is only an idea.
The text was updated successfully, but these errors were encountered: