( key: PiSettingsKey, value: unknown, projectPath?: string | undefined | null | undefined, )
| 222 | } |
| 223 | |
| 224 | export async function updatePiSettingInHost( |
| 225 | key: PiSettingsKey, |
| 226 | value: unknown, |
| 227 | projectPath?: string | undefined | null | undefined, |
| 228 | ): Promise<PiSettings> { |
| 229 | const settingsManager = await getPiSettingsManager(projectPath) |
| 230 | const updated = |
| 231 | updateBooleanSetting(settingsManager, key, value) || |
| 232 | (await updateNonBooleanSetting(settingsManager, key, value, projectPath)) |
| 233 | |
| 234 | if (updated) { |
| 235 | await settingsManager.flush() |
| 236 | await markRuntimeSettingsStaleForProject(null) |
| 237 | } |
| 238 | |
| 239 | return loadPiSettingsInHost(projectPath) |
| 240 | } |
nothing calls this directly
no test coverage detected