mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-13 15:40:57 -07:00
refactor(config): remove legacy V1 settings migration logic (#16252)
This commit is contained in:
@@ -14,11 +14,7 @@ import { StreamingState } from './types.js';
|
||||
import { ConfigContext } from './contexts/ConfigContext.js';
|
||||
import { AppContext, type AppState } from './contexts/AppContext.js';
|
||||
import { SettingsContext } from './contexts/SettingsContext.js';
|
||||
import {
|
||||
type SettingScope,
|
||||
LoadedSettings,
|
||||
type SettingsFile,
|
||||
} from '../config/settings.js';
|
||||
import { LoadedSettings, type SettingsFile } from '../config/settings.js';
|
||||
|
||||
vi.mock('ink', async (importOriginal) => {
|
||||
const original = await importOriginal<typeof import('ink')>();
|
||||
@@ -92,7 +88,7 @@ describe('App', () => {
|
||||
mockSettingsFile,
|
||||
mockSettingsFile,
|
||||
true,
|
||||
new Set<SettingScope>(),
|
||||
[],
|
||||
);
|
||||
|
||||
const mockAppState: AppState = {
|
||||
|
||||
@@ -104,7 +104,7 @@ const createMockSettings = (
|
||||
path: '/workspace/settings.json',
|
||||
},
|
||||
true,
|
||||
new Set(),
|
||||
[],
|
||||
);
|
||||
|
||||
vi.mock('../../config/settingsSchema.js', async (importOriginal) => {
|
||||
|
||||
@@ -51,7 +51,7 @@ const createMockSettings = (
|
||||
path: '/workspace/settings.json',
|
||||
},
|
||||
true,
|
||||
new Set(),
|
||||
[],
|
||||
);
|
||||
|
||||
describe('ThemeDialog Snapshots', () => {
|
||||
|
||||
@@ -24,7 +24,7 @@ describe('colorizeCode', () => {
|
||||
},
|
||||
{ path: '', settings: {}, originalSettings: {} },
|
||||
true,
|
||||
new Set(),
|
||||
[],
|
||||
);
|
||||
|
||||
const result = colorizeCode({
|
||||
|
||||
@@ -198,7 +198,7 @@ Another paragraph.
|
||||
},
|
||||
{ path: '', settings: {}, originalSettings: {} },
|
||||
true,
|
||||
new Set(),
|
||||
[],
|
||||
);
|
||||
|
||||
const { lastFrame } = renderWithProviders(
|
||||
|
||||
Reference in New Issue
Block a user