// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import * as hjson from 'hjson';
let customOptions: HjsonOptions = {};
const defaultOptions: HjsonOptions = {
separator: true,
condense: 4,
bracesSameLine: true,
quotes: 'keys',
space: 2
};
function getOptions(): void {
let config = vscode.workspace.getConfiguration('hjson-formatter');
customOptions = config.get<HjsonOptions>('options', {});
}
This file has been truncated. show original