| 1 | import * as vscode from "vscode"; |
| 2 | |
| 3 | export function getConfig(): vscode.WorkspaceConfiguration { |
| 4 | return vscode.workspace.getConfiguration("regex-file"); |
| 5 | } |
| 6 | |
| 7 | export function setConfig(key: string, value: any) { |
| 8 | const config = getConfig(); |
| 9 | return config.update(key, value, true); |
| 10 | } |