This commit is contained in:
Joao Moreno
2018-02-27 15:41:00 +01:00
parent 6dc27ecac8
commit 838f4024b3
8 changed files with 12 additions and 22 deletions

View File

@@ -14,8 +14,7 @@ const builtInExtensionsPath = path.join(__dirname, '..', 'builtInExtensions.json
const controlFilePath = path.join(os.homedir(), '.vscode-oss-dev', 'extensions', 'control.json');
function readJson(filePath) {
//@ts-ignore review
return JSON.parse(fs.readFileSync(filePath));
return JSON.parse(fs.readFileSync(filePath, { encoding: 'utf8' }));
}
function writeJson(filePath, obj) {