Closed evtimov closed 1 year ago
Hi @evtimov
Due to the tests I have been doing, that configuration in settings.json only works with the default profile.
You will need to go to the configuration editor interface, search for files.associations and from there add an element "*.json" with a value "jsonc".
"files.associations": {
"*.json": "jsonc"
}
[2023-08-01 17:28:05] [error] SyntaxError: g:\.vscode\sftp.json: Expected double-quoted property name in JSON at position 491
at JSON.parse (<anonymous>)
at Object.<anonymous> (c:\Users\info\.vscode\extensions\satiromarra.code-sftp-1.18.1\dist\extension.js:2:250995)
Hi @evtimov
Mea culpa, I have only verified that it allowed me to comment on lines and not that the extension recognised them.
The extension has a schema to validate the sftp.json file and it seems that the standard does not allow comments.
Buuuut it seems that it allows a false comment type "//username": "user"
instead of "username": "user"
Ah yes, but my idea was to use it like that :)) Anyway, thank you for checking! You can close this issue 👍 Muchas gracias!
After enabling comments in JSON files (JSON with Comments) in user settings file (settings.json)
It is not possible to add comments in sftp.json. Is there a way sftp.json to respect any comments added?
Here is the log file:
Gracias Satiro.