MCPcopy Index your code
hub / github.com/dotnet/vscode-csharp / updateConfig

Function updateConfig

test/fakes.ts:340–349  ·  view source on GitHub ↗
(
    vscode: vscode.vscode,
    section: string | undefined,
    config: string,
    value: any
)

Source from the content-addressed store, hash-verified

338}
339
340export 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}

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected