liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Unexpected token } in JSON sftp.json #985

Closed seierup closed 2 years ago

seierup commented 2 years ago

Hello

I just installed sftp and having some trouble getting started.

Notification:

**PROJECT FOLDER**/.vscode/sftp.json: Unexpected token } in JSON at position 347

Output

[03-19 09:08:50] [error] SyntaxError: **PROJECT FOLDER**/.vscode/sftp.json: Unexpected token } in JSON at position 347
    at JSON.parse (<anonymous>)
    at **/.vscode/extensions/liximomo.sftp-1.12.10/dist/extension.js:70:89202
    at **/.vscode/extensions/liximomo.sftp-1.12.10/dist/extension.js:1:10321
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3) 

My config

{
    "name": "Our Server",
    "host": "IP-ADRESS",
    "protocol": "ftp",
    "port": 21,
    "username": "OUR USERNAME",
    "password": "OUR PASSWORD",
    "remotePath": "/public_html/",
    "uploadOnSave": true,
    "watcher": {
        "files": "dist/*.{js,css}",
        "autoUpload": true,
        "autoDelete": true
    },
}