MCPcopy Create free account
hub / github.com/Snapchat/Valdi / writeConfig

Function writeConfig

valdi/vscode_debugger/src/common/contributionUtils.ts:187–192  ·  view source on GitHub ↗
(
  wsp: typeof workspace,
  key: K,
  value: IConfigurationTypes[K],
  target?: ConfigurationTarget,
)

Source from the content-addressed store, hash-verified

185 * Typed guard for updating a contributed config.
186 */
187export const writeConfig = <K extends keyof IConfigurationTypes>(
188 wsp: typeof workspace,
189 key: K,
190 value: IConfigurationTypes[K],
191 target?: ConfigurationTarget,
192) => wsp.getConfiguration().update(key, value, target);

Callers 4

setLocationFunction · 0.90
trySuggestPrintingMethod · 0.90
toggleOnExperimentFunction · 0.90
promptLongBreakpointFunction · 0.90

Calls 1

updateMethod · 0.65

Tested by 1

setLocationFunction · 0.72