Full Config完整配置

name

string - A string to identify your config.用于标识配置的字符串。

context

string - A path relative to the workspace root folder. 相对于工作区根文件夹的路径。Using this when you want to map a subfolder to the remotePath.当您想将子文件夹映射到remotePath时使用此选项。

Default

workspace root工作区根

protocol

string - sftp or ftp.sftp或ftp。

Default

sftp

host

string - Hostname or IP address of the server.服务器的主机名或IP地址。

port

integer - Port number of the server.服务器的端口号。

Default

22

username

string - Username for authentication.用于身份验证的用户名。

password

string - Password for password-based user authentication.用于基于密码的用户身份验证的密码。

remotePath

string - The absolute path on remote远程上的绝对路径

Default

/

uploadOnSave

boolean - Upload on every save operation of VS codeVS Code的每次保存操作上传

Default

false

downloadOnOpen

boolean - Download the file from the remote server whenever it is opened无论何时打开文件,都要从远程服务器下载

Default

false

syncOption

object - Config the behavior of Sync command.配置Sync命令的行为。

Default

{}

syncOption.delete

boolean - Delete extraneous files from dest dirs.从目标目录中删除无关文件。

syncOption.skipCreate

boolean - Skip creating new files on dest.跳过在dest上创建新文件。

syncOption.ignoreExisting

boolean - Skip updating files that exist on dest.跳过更新dest上存在的文件。

syncOption.update

boolean - Update the dest only if a newer version is on the src filesystem.只有当src文件系统上有更新的版本时,才更新dest。

ignore

string[] - Same behavior as gitignore, all path reltative to context of the current config与gitignore相同的行为,所有路径都与当前配置的上下文相关

Default

[]

ignoreFile

string - Absolute path to the ignore file or Relative path relative to the workspace root folder.忽略文件的绝对路径或相对于工作区根文件夹的相对路径。

watcher

object.对象

watcher.files

string - glob patterns that are watched and when edited outside of the VS cdoe editor are processed. 处理在VScdoe编辑器之外观看和编辑的glob模式。Set uploadOnSave to false when you watch everything.当您观看所有内容时,请将uploadOnSave设置为false

watcher.autoUpload

boolean - upload when file changed文件更改时上载

watcher.autoDelete

boolean - delete when file removed删除文件时删除

remoteTimeOffsetInHours

number - The number of hours difference between the local machine and remote/server. 本地计算机和远程/服务器之间的时差小时数。(remote minus local)(远程减去本地)

Default

0

remoteExplorer

object.对象

remoteExplorer.filesExclude

string[] - Configure patterns for excluding files and folders.配置排除文件和文件夹的模式。 The Remote Explorer decides which files and folders to show or hide based on this setting.远程资源管理器根据此设置决定显示或隐藏哪些文件和文件夹。

concurrency

number - Lower concurrency could get more stability because some client/server have some sort of configured/hard coded limit.较低的并发性可以获得更高的稳定性,因为某些客户端/服务器具有某种配置/硬编码的限制。

Default

4

connectTimeout

number - the maximum connection time最大连接时间

Default

10000

limitOpenFilesOnRemote

mixed - Limit open file descriptors to the specific number in a remote server. 将打开的文件描述符限制为远程服务器中的特定数量。Set to true for using default limit(222). Do not set this unless you have to.设置为true以使用默认限制(222)。除非迫不得已,否则不要设置此项。

Default

false

SFTP only Config

agent

string - Path to ssh-agent's UNIX socket for ssh-agent-based user authentication. 用于基于ssh代理的用户身份验证的ssh代理的UNIX套接字的路径。Windows users: set to 'pageant' for authenticating with Pageant or (actual) path to a cygwin "UNIX socket".ld get more stability because some client/server have some sort of configured/hard coded limit.Windows用户:设置为“选美”以使用pageant进行身份验证,或设置为cygwin“UNIX套接字”的(实际)路径,可以获得更高的稳定性,因为某些客户端/服务器具有某种配置/硬编码限制。

privateKeyPath

string - Absolute path to user private key.用户私钥的绝对路径。

passphrase

mixed - For an encrypted private key, this is the passphrase string used to decrypt it. 对于加密的私钥,这是用于对其进行解密的密码短语字符串。Set to true for enable passphrase dialog. 为启用密码短语对话框设置为trueThis will prevent from using cleartext passphrase in this config.这将阻止在此配置中使用明文密码短语。

interactiveAuth

boolean - Set to true for enable verifyCode dialog. Keyboard interaction authentication mechanism. 为“启用验证代码”对话框设置为true。键盘交互验证机制。For example using Google Authentication (Multi factor)例如,使用Google身份验证(多因素)

Note: (requires the server to have keyboard-interactive authentication enabled)(要求服务器启用键盘交互式身份验证)

Default

false

algorithms

Explicit overrides for the default transport layer algorithms used for the connection.用于连接的默认传输层算法的显式重写。

Default

algorithms: {
  "kex": [
    "ecdh-sha2-nistp256",
    "ecdh-sha2-nistp384",
    "ecdh-sha2-nistp521",
    "diffie-hellman-group-exchange-sha256",
    "diffie-hellman-group14-sha1"
  ],
  "cipher": [
    "aes128-ctr",
    "aes192-ctr",
    "aes256-ctr",
    "aes128-gcm",
    "aes128-gcm@openssh.com",
    "aes256-gcm",
    "aes256-gcm@openssh.com"
  ],
  "serverHostKey": [
    "ssh-rsa",
    "ecdsa-sha2-nistp256",
    "ecdsa-sha2-nistp384",
    "ecdsa-sha2-nistp521"
  ],
  "hmac": [
    "hmac-sha2-256",
    "hmac-sha2-512",
    "hmac-sha1"
  ]
},

sshConfigPath

Absolute path to your SSH config file.SSH配置文件的绝对路径。

Default

~/.ssh/config

FTP only Config

secure

mixed - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990)对于控制和数据连接加密都设置为true,仅对于控制连接加密设置为“control”,或对于隐式加密的控制连接设置为“implict”(现代不赞成使用此模式,但通常使用端口990)

Default

false

secureOptions

Additional options to be passed to tls.connect(). 要传递给tls.connect()的其他选项。see https://nodejs.org/api/tls.html#tls_tls_connect_options_callback请参阅https://nodejs.org/api/tls.html#tls_tls_connect_options_callback