Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
392 stars 75 forks source link

You are specifing "agent" and "privateKey" at the same time, the later will be ignored #451

Open Offerel opened 10 months ago

Offerel commented 10 months ago

Do you read the FAQ?

Describe the bug On the output panel i get the message: " [warn] Config Option Conflicted. You are specifing "agent" and "privateKey" at the same time, the later will be ignored." multiple times. There is no privateKey in my config, i use only "agent"

To Reproduce Example config:

{
    "name": "Testserver",
    "host": "192.168.178.2",
    "protocol": "sftp",
    "port": 22,
    "remotePath": "/var/www/html",
    "profiles": {
        "Linux": {
            "agent": "$SSH_AUTH_SOCK"
        },
        "Windows": {
            "agent": "pageant"
        }
    },
    "username": "myuser",
    "uploadOnSave": true,
    "downloadOnOpen": true,
    "syncOption":{  "delete": true,
                    "skipCreate": false,
                    "ignoreExisting": false,
                    "update" : true
                },
    "remoteTimeOffsetInHours": 1,
    "syncMode": "full",
    "watcher": {
        "files": "**/*",
        "autoUpload": true,
        "autoDelete": true
    },
    "ignore": [
        ".vscode",
        ".git"
    ]
}

Expected behavior No erro message like this.

Desktop (please complete the following information):