continue-custom/core/test
Jazzcort 712b7bcfd5 Fix: Refactor dependency injection for settings and clients
This commit refactors how IdeSettings and ControlPlaneClient are accessed throughout
the configuration system to improve state management and reduce coupling.

Previously, ideSettingsPromise was passed down from the top-level ConfigHandler
through various profile loaders and clients. This created a rigid dependency chain
and required manual promise replacement when settings were updated. Similarly,
downstream components could hold onto stale instances of ControlPlaneClient after a
change in authentication state.

The key changes are:
  - Removed ideSettingsPromise prop drilling: Components that require IDE settings
    now fetch them directly from the IDE object (ide.getIdeSettings()) when
    needed.

  - Updated globalLocalProfileManager during every cascadeInit: This ensures it
    always holds the most recent ControlPlaneClient, preventing issues with stale
    client objects after re-authentication.

  - Simplified constructors: The constructors for ConfigHandler, ControlPlaneClient,
    and various loaders have been simplified to reflect these changes, primarily by
    passing the IDE object directly instead of its derived promises.
2025-09-03 09:15:47 -04:00
..
fixtures.ts Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
jest.global-setup.ts cherry pick core tests commit 2024-12-05 11:34:39 -08:00
jest.setup-after-env.js fix tests 2024-12-11 08:41:58 -08:00
testDir.ts fix test dirs being created inside core folder 2025-05-09 17:27:03 +05:30
testEnv.test.ts core test cleanup 2024-12-04 17:21:04 -08:00
vitest.global-setup.ts add .global-setup and .setup files 2025-06-10 11:26:37 +05:30
vitest.setup.ts remove comments in vitest.setup 2025-06-13 11:11:38 +05:30