This commit is contained in:
Seivan Heidari
2019-11-18 02:37:18 +01:00
parent 166636ba77
commit e5bbb47680
3 changed files with 9 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import * as fs from 'fs';
import * as jsonc from 'jsonc-parser';
import * as path from 'path';
import * as vscode from 'vscode';
@@ -140,7 +141,6 @@ function readFileText(filePath: string): string {
return fs.readFileSync(filePath, 'utf8');
}
// Might need to replace with JSONC if a theme contains comments.
function parseJSON(content: string): any {
return JSON.parse(content);
return jsonc.parse(content);
}