mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-11 14:40:52 -07:00
test
This commit is contained in:
@@ -338,6 +338,10 @@ export class LoadedSettings {
|
||||
}
|
||||
|
||||
setValue(scope: LoadableSettingScope, key: string, value: unknown): void {
|
||||
coreEvents.emitFeedback(
|
||||
'info',
|
||||
'saving: ' + key + ', ' + value + ', scope: ' + scope,
|
||||
);
|
||||
const settingsFile = this.forScope(scope);
|
||||
setNestedProperty(settingsFile.settings, key, value);
|
||||
setNestedProperty(settingsFile.originalSettings, key, value);
|
||||
@@ -727,6 +731,10 @@ export function migrateDeprecatedSettings(
|
||||
}
|
||||
|
||||
if (modified) {
|
||||
coreEvents.emitFeedback(
|
||||
'info',
|
||||
'setting new general for scope:' + scope,
|
||||
);
|
||||
loadedSettings.setValue(scope, 'general', newGeneral);
|
||||
anyModified = true;
|
||||
}
|
||||
@@ -847,6 +855,7 @@ export function saveSettings(settingsFile: SettingsFile): void {
|
||||
settingsToSave as Record<string, unknown>,
|
||||
);
|
||||
} catch (error) {
|
||||
coreEvents.emitFeedback('error', 'here' + error, error);
|
||||
coreEvents.emitFeedback(
|
||||
'error',
|
||||
'There was an error saving your latest settings changes.',
|
||||
|
||||
@@ -371,6 +371,7 @@ export async function main() {
|
||||
process.env['CLOUD_SHELL'] === 'true' ||
|
||||
process.env['GEMINI_CLI_USE_COMPUTE_ADC'] === 'true'
|
||||
) {
|
||||
coreEvents.emitFeedback('info', 'saving compute_adc');
|
||||
settings.setValue(
|
||||
SettingScope.User,
|
||||
'security.auth.selectedType',
|
||||
|
||||
Reference in New Issue
Block a user