(profile: string | null, partial: Partial<SessionDefaults>)
| 76 | } |
| 77 | |
| 78 | setDefaultsForProfile(profile: string | null, partial: Partial<SessionDefaults>): void { |
| 79 | const previous = this.getRawForProfile(profile); |
| 80 | const next = { ...previous, ...partial }; |
| 81 | this.setDefaultsForResolvedProfile(profile, next); |
| 82 | this.revision += 1; |
| 83 | const profileLabel = this.getProfileLabel(profile); |
| 84 | log('info', `[Session] Defaults updated (${profileLabel}): ${Object.keys(partial).join(', ')}`); |
| 85 | } |
| 86 | |
| 87 | clear(keys?: (keyof SessionDefaults)[]): void { |
| 88 | if (keys == null) { |
no test coverage detected