( key: PiSettingsKey, value: unknown, projectPath?: string | undefined | null | undefined, )
| 20 | } |
| 21 | |
| 22 | export async function updatePiSetting( |
| 23 | key: PiSettingsKey, |
| 24 | value: unknown, |
| 25 | projectPath?: string | undefined | null | undefined, |
| 26 | ): Promise<PiSettings> { |
| 27 | const settings = await invokeRuntimeHost('updatePiSetting', { |
| 28 | key, |
| 29 | value, |
| 30 | projectPath: projectPath ?? null, |
| 31 | }) |
| 32 | await invalidateRuntimeHostSettings({ projectPath: projectPath ?? null }) |
| 33 | return settings |
| 34 | } |
no test coverage detected