Compare commits

...

1 Commits

Author SHA1 Message Date
Sehoon Shon cb8edb2408 test 2026-01-30 09:55:53 -05:00
2 changed files with 10 additions and 0 deletions
+9
View File
@@ -338,6 +338,10 @@ export class LoadedSettings {
} }
setValue(scope: LoadableSettingScope, key: string, value: unknown): void { setValue(scope: LoadableSettingScope, key: string, value: unknown): void {
coreEvents.emitFeedback(
'info',
'saving: ' + key + ', ' + value + ', scope: ' + scope,
);
const settingsFile = this.forScope(scope); const settingsFile = this.forScope(scope);
setNestedProperty(settingsFile.settings, key, value); setNestedProperty(settingsFile.settings, key, value);
setNestedProperty(settingsFile.originalSettings, key, value); setNestedProperty(settingsFile.originalSettings, key, value);
@@ -727,6 +731,10 @@ export function migrateDeprecatedSettings(
} }
if (modified) { if (modified) {
coreEvents.emitFeedback(
'info',
'setting new general for scope:' + scope,
);
loadedSettings.setValue(scope, 'general', newGeneral); loadedSettings.setValue(scope, 'general', newGeneral);
anyModified = true; anyModified = true;
} }
@@ -847,6 +855,7 @@ export function saveSettings(settingsFile: SettingsFile): void {
settingsToSave as Record<string, unknown>, settingsToSave as Record<string, unknown>,
); );
} catch (error) { } catch (error) {
coreEvents.emitFeedback('error', 'here' + error, error);
coreEvents.emitFeedback( coreEvents.emitFeedback(
'error', 'error',
'There was an error saving your latest settings changes.', 'There was an error saving your latest settings changes.',
+1
View File
@@ -371,6 +371,7 @@ export async function main() {
process.env['CLOUD_SHELL'] === 'true' || process.env['CLOUD_SHELL'] === 'true' ||
process.env['GEMINI_CLI_USE_COMPUTE_ADC'] === 'true' process.env['GEMINI_CLI_USE_COMPUTE_ADC'] === 'true'
) { ) {
coreEvents.emitFeedback('info', 'saving compute_adc');
settings.setValue( settings.setValue(
SettingScope.User, SettingScope.User,
'security.auth.selectedType', 'security.auth.selectedType',