diff options
| author | Jacob Richman <[email protected]> | 2025-08-20 12:49:15 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-20 19:49:15 +0000 |
| commit | 52e340a11bc6c9ca10674799fa784566d4bbd538 (patch) | |
| tree | bfe028836c7c861d83cb445242ada8b46b02869b /packages/cli/src/ui/contexts/SettingsContext.ts | |
| parent | fd64d89da03840802c4d39b01a5915207514d29c (diff) | |
Revert "Ignore workspace settings for untrusted folders" (#6672)
Diffstat (limited to 'packages/cli/src/ui/contexts/SettingsContext.ts')
| -rw-r--r-- | packages/cli/src/ui/contexts/SettingsContext.ts | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/packages/cli/src/ui/contexts/SettingsContext.ts b/packages/cli/src/ui/contexts/SettingsContext.ts deleted file mode 100644 index 610a778d..00000000 --- a/packages/cli/src/ui/contexts/SettingsContext.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @license - * Copyright 2025 Google LLC - * SPDX-License-Identifier: Apache-2.0 - */ - -import { createContext, useContext } from 'react'; -import { LoadedSettings } from '../../config/settings.js'; - -export interface SettingsContextType { - settings: LoadedSettings; - recomputeSettings: () => void; -} - -// This context is initialized in gemini.tsx with the loaded settings. -export const SettingsContext = createContext<SettingsContextType | null>(null); - -export function useSettings(): LoadedSettings { - const context = useContext(SettingsContext); - if (!context) { - throw new Error('useSettings must be used within a SettingsProvider'); - } - return context.settings; -} |
