-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: File system provider API #35009
Comments
Would this feature allows editting files on a remote Linux server over SSH ? I currently use vscode remote extension, but it's limited to only a single file at a time |
The API certainly allows for this, but @jrieken's ftp-example extension only implements FTP. I have a functional prototype of SFTP support built using the ssh2-sftp-client lib. Just working on some usability improvements. I intend to release it in the next few days. |
Thanks sftp sounds good. I presume that I would need to write a bit of code ( golang for me ) to match the client API ? Or if it just using standard sftp command ? |
The comment about FTP support is in reference to @jrieken's ftp-filesystem extension. I'll update this bug with a link to my SFTP repo once it's up. |
Thanks
…On Mon, 23 Oct 2017, 19:00 khimaros, ***@***.***> wrote:
The comment about FTP support is in reference to @jrieken
<https://github.com/jrieken>'s ftp-filesystem extension. I'll update this
bug with a link to my SFTP repo once it's up.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35009 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwtoB394YuYYi8wjCV1Y1csufQDPDks5svMY9gaJpZM4PjsLf>
.
|
I will expose it on the remote server with this. It supports serving files automatically. https://github.com/pkg/sftp It will make it very easy for users on any OS to try out. |
@gedw99 -- there may be a misunderstanding. The proposed API referenced in this bug allows for filesystem extensions to be written for any backend (ftp, sftp, webdav, etc are among the possibilities). The sftp-filesystem extension I mentioned allows you to edit files in vscode directly over an SSH2/SFTP connection as though they were local files.The only setup required is to have an SSH server on the server which hosts the files. If you are authoring something like a debugger extension for vscode, there is a separate mechanism for accessing the file contents. |
Ah that's exactly what I was intending to do.
To expose the golang auto completion. So you can edit golang on a remote
server with auto completion.
If you know the URLs please let me know
…On Mon, 23 Oct 2017, 20:05 khimaros, ***@***.***> wrote:
@gedw99 <https://github.com/gedw99> -- there may be a misunderstanding.
The proposed API referenced in this bug allows for filesystem extensions to
be written for any backend (ftp, sftp, webdav, etc are among the
possibilities).
The sftp-filesystem extension I mentioned allows you to edit files in
vscode directly over an SSH2/SFTP connection as though they were local
files.The only setup required is to have an SSH server on the server which
hosts the files.
If you are authoring something like a debugger extension for vscode, there
is a separate mechanism for accessing the file contents.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#35009 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATuCwiFDaeaU7d1qRZzj0RH28QFUSyq5ks5svNVxgaJpZM4PjsLf>
.
|
Test for: #34218
Complexity: 4
We have added proposed API for file system provider. They allow you add a new root node to the explorer (currently implemented as adding a workspace folder), allow for file creation/discovery/saving etc.
For testing, write a file system provider. To keep things simple, I suggest to implement a "localhost"-provider, that represents files on your computer and uses the node API. A sample of an FTP provider is here: https://github.com/jrieken/ftp-sample. You are obviously free to take a more complex sample, like
tar
-files orssh
but at the risk of spending much time understanding how the backends workonFileSystemAccess:<your_scheme>
This is feature ready and all done but the purpose is to that we have the right abstraction that allows you feed (remote) files into the editor.
The text was updated successfully, but these errors were encountered: