( wsp: typeof workspace, key: K, value: IConfigurationTypes[K], target?: ConfigurationTarget, )
| 185 | * Typed guard for updating a contributed config. |
| 186 | */ |
| 187 | export 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); |