This is a demo to see what is possible with respect to extending VS Code to support remote file editing.
How It Works
The goal of this extension is to simulate connecting to a remote directory, using a fuzzy search to find files in that directory, and then open them for reading in VS Code. (Ideally, it would be for editing, but that is going to be a separate demo that requires ExpanDrive.)
To introduce the UI for the remote connection dialog and fuzzy search, we use
the technique introduced by the vs-code-preview-html
demo that uses the
To connect and communicate with a remote server, we use the
Big Dig library. (Note that the server
must run on some sort of *nix system because it runs
Developing This Extension
In addition to the normal
For testing, it is easiest to use
Once you have created this key pair and stored it in
Running The Extension
Once you have created
You can hit enter or click the CONNECT button to connect. Assuming the connection is successful, you should be able to type a file name into the text box and click on the search results to open the files and see their contents:
Note that the search logic is extremely simple and inefficient because this is just a demo, so don't be surprised if it isn't very responsive.
Using a True Remote Connection
If you are interested in connecting to a machine that is actually remote,
check out the source code for this extension on a remote machine and run
Loading More data ...