Gert-dev / php-ide-serenata

Atom IDE package that integrates the Serenata server to provide PHP code assistance
https://serenata.gitlab.io/
Other
274 stars 19 forks source link

fix windows config setup #479

Closed UziTech closed 5 years ago

UziTech commented 5 years ago

When initially setting up the new config file in windows we need to escape any backslashes in the folder path

before:

{
    "uris": [
        "file://C:\folder"
    ],
    "indexDatabaseUri": "file://C:\Users\user\AppData\Roaming\php-ide-serenata\index-5c51a4ab6ab1bda8bf0d2e20c0bdc99f.sqlite",
    "phpVersion": 7.3,
    "excludedPathExpressions": [],
    "fileExtensions": [
        "php"
    ]
}

after:

{
    "uris": [
        "file://C:\\folder"
    ],
    "indexDatabaseUri": "file://C:\\Users\\user\\AppData\\Roaming\\php-ide-serenata\\index-5c51a4ab6ab1bda8bf0d2e20c0bdc99f.sqlite",
    "phpVersion": 7.3,
    "excludedPathExpressions": [],
    "fileExtensions": [
        "php"
    ]
}
Gert-dev commented 5 years ago

Thanks for taking the time to fix issues with this package on Windows. LGTM!