Skip to content

dlutwuwei/upload

Repository files navigation

notice

I have test the extension in windows pc, beacause of my fault, it is really cased by windows os path format, (uri.path and uri.fspath is different in windows os), This version has fixed it for windows users. Enjoy...

upload

upload or download files from remote server via ssh2 and sftp

localPath is ok now, it must be set to directory contains your files;

Just simple set some config, upload file to server, get rid of vim or emacs;

usage

upload file or directory and download file

usage

not support download directory, it fouces on uploading to remote server, compensate for your difficulty on vim or emacs;

switch sever

switch

how to use

  • ctrl + s will trigger upload

  • right click to select upload to server;

  • right click in explorer to upload directory or file to server;

  • cmd+shift+p input upload command to upload file to remote server;

  • cmd+shift+p input download command to download file to local;

  • cmd+shift+p input readdir command to see dirtory;

  • cmd+shift+p input next server command to switch server, need setting;

Settings

First, set config in .vscode-upload.json in your workspace

  • host: the address of remote server;
  • port: the port of ssh2 server, default 22;
  • username: your user name
  • password: your password
  • remotePath: the absolute path of your project in remote server;
  • localPath: the absolute root path contains your local files;
  • disable: setting true will stop uploading when ctrl+s, default false;
  • private_Key: private key path to authenriate;
  • exclude: exclude directory name;

For example:

{
    "host": "10.100.6.175",
    "port": 22,
    "username": "****",
    "password": "****.****",
    "remotePath": "/data04/****/repos/i18n_web",
    "localPath": "/Users/****/coding/todomvc",
    "disable": false,
    "exclude": ["node_modules"] // or ""node_modules""
}

or

[{
    "host": "10.1.6.175",
    "port": 22,
    "username": "****",
    "password": ********",
    "remotePath": "/data04/****/repos/i18n_web",
    "disable": false
},{
    "host": "10.1.6.188",
    "port": 22,
    "username": "****",
    "password": "*******",
    "remotePath": "/data04/****/repos/i18n_web",
    "disable": false
}]

for multi-server to switch

Requirements

node: v6.6.0

npm: 3.10.3

only support sftp via ssh2

Known Issues

Release Notes

  • 0.0.2 change vscode verion.
  • 0.0.6 reuse connection, much more fast.
  • 0.0.7 add filesize uploaded show, connect again when config file changed.
  • 0.0.8 change readme and some code fix.
  • 0.0.9 create config file auto in workspace.
  • 0.1.0 fix some status show.
  • 0.1.1 add upload dir to remote, add right click menu in explorer.
  • 0.1.2 upload readme and multi-server support and server switch.
  • 0.1.3 fix bug.
  • 0.1.4 add private key authenriate, add local path config setting.
  • 0.1.5 fix path problem in windows pc.

For more information

About

vscode-upload extension

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published