import * as vscode from 'vscode'; /** * Gets the config value `mlir.`, with an optional workspace folder. */ export function get(key: string, workspaceFolder: vscode.WorkspaceFolder = null, defaultValue: T = undefined): T { return vscode.workspace.getConfiguration('mlir', workspaceFolder) .get(key, defaultValue); } /** * Sets the config value `mlir.`. */ export function update(key: string, value: T, target?: vscode.ConfigurationTarget) { return vscode.workspace.getConfiguration('mlir').update(key, value, target); }