mickeypearce / vscode-oracle-format

PL/SQL formatter (using SQLcl)
https://marketplace.visualstudio.com/items?itemName=mp.vscode-oracle-format
11 stars 4 forks source link

settings.json config issue #2

Closed fargue closed 6 years ago

fargue commented 6 years ago

I've added following to my settings.json file:

    ......
45    {
46        "oracle-format.sqlcl": "/usr/local/software/sqlcl/bin/sql",
47        "oracle-format.rules": "/usr/local/software/config/sql-formatter.xml"
48    }

vscode reports issue with settings.json file:

[jsonc] Property expected (45,5)

Do I have the entries correct. Looks like invalid json and I should have something like:

"propertyname" : {
    "oracle-format.sqlcl": "/usr/local/software/sqlcl/bin/sql",
    "oracle-format.rules": "/Users/jrarnold/config/sql-formatter.xml"
}
mickeypearce commented 6 years ago

Try adding without brackets:

......
"oracle-format.sqlcl": "/usr/local/software/sqlcl/bin/sql",
"oracle-format.rules": "/usr/local/software/config/sql-formatter.xml"

The {} brackets were meant as top settings brackets. Sorry for the confusion.