rafaelmaiolla / remote-vscode

A package that implements the Textmate's 'rmate' feature for Visual Studio Code.
MIT License
259 stars 33 forks source link

Cannot create new files on server #53

Open lazarillo opened 6 years ago

lazarillo commented 6 years ago

This is not so much a bug that needs to be fixed, but some clarification needed on the documentation. (I can pull and add myself, if desired, but this seemed easier since the change is so small.)

When installing, I thought I made a mistake and couldn't get things to work, but then I finally figured out that you cannot add new files via this workflow.

For instance, in the documentation, there is an example which says:



In this case, be sure that file is the name of a file that actually exists!! For example, if your server already has a file at ~/src/index.sh, be sure to run:

rmate -p 52698 ~/src/index.sh

If the file does not exist, first make it on the server.

I am not sure if I am actually doing anything wrong, but I noticed that I can indeed edit the file and it is saved properly on the remote server as long as it already existed.

rafaelmaiolla commented 6 years ago

I tested here and there is no need for the file to exist. It will just create it if it doesn't exist after you save it in VSCode

can you confirm?