MCPcopy
hub / github.com/PowerShell/vscode-powershell / onPowerShellSettingChange

Function onPowerShellSettingChange

src/settings.ts:413–420  ·  view source on GitHub ↗
(
    setting: string,
    action: (newValue: T | undefined) => void,
    options?: onSettingChangeOptions,
)

Source from the content-addressed store, hash-verified

411// Because we actually do use the constraint in the callback
412// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-parameters
413export function onPowerShellSettingChange<T>(
414 setting: string,
415 action: (newValue: T | undefined) => void,
416 options?: onSettingChangeOptions,
417): vscode.Disposable {
418 const section = "powershell";
419 return onSettingChange(section, setting, action, options);
420}

Callers

nothing calls this directly

Calls 1

onSettingChangeFunction · 0.85

Tested by

no test coverage detected