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

Function readConfig

valdi/vscode_debugger/src/common/contributionUtils.ts:178–182  ·  view source on GitHub ↗
(
  wsp: typeof workspace,
  key: K,
  folder?: WorkspaceFolder,
)

Source from the content-addressed store, hash-verified

176 * Typed guard for reading a contributed config.
177 */
178export const readConfig = <K extends keyof IConfigurationTypes>(
179 wsp: typeof workspace,
180 key: K,
181 folder?: WorkspaceFolder,
182) => wsp.getConfiguration(undefined, folder).get<IConfigurationTypes[K]>(key);
183
184/**
185 * Typed guard for updating a contributed config.

Callers 8

attachProcessFunction · 0.90
getFreshLensLocationFunction · 0.90
promptLongBreakpointFunction · 0.90
readConfigMethod · 0.90
commonResolutionFunction · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected