Readding jsonc parser because of https://github.com/rust-analyzer/rust-analyzer/pull/2061\#discussion_r344783715
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user