(
vscode: vscode.vscode,
section: string | undefined,
config: string,
value: any
)
| 338 | } |
| 339 | |
| 340 | export async function updateConfig( |
| 341 | vscode: vscode.vscode, |
| 342 | section: string | undefined, |
| 343 | config: string, |
| 344 | value: any |
| 345 | ): Promise<void> { |
| 346 | const workspaceConfig = vscode.workspace.getConfiguration(section); |
| 347 | const configEntry = section ? `${section}.${config}` : config; |
| 348 | await workspaceConfig.update(configEntry, value); |
| 349 | } |
no test coverage detected