diff --git a/server/src/server.ts b/server/src/server.ts index 58919fc..5a1a6d5 100644 --- a/server/src/server.ts +++ b/server/src/server.ts @@ -225,7 +225,8 @@ export async function getCppProperties(cCppPropertiesPath: string, currentSettin try { if (fs.existsSync(cCppPropertiesPath)) { const matchOn: string = await getActiveConfigurationName(currentSettings); - const cCppProperties: IConfigurations = JSON.parse(fs.readFileSync(cCppPropertiesPath, 'utf8')); + const JSON5 = require('json5'); + const cCppProperties: IConfigurations = JSON5.parse((fs.readFileSync(cCppPropertiesPath, 'utf8'))); const platformConfig = cCppProperties.configurations.find(el => el.name === matchOn); if (platformConfig !== undefined) {