continue-custom/core/control-plane
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
..
analytics fix: skip analytics capture calls if workspaceId is undefined 2025-08-05 15:23:37 -07:00
auth separate SessionInfo types 2025-05-18 18:14:50 -07:00
mdm Suppress stderr output from Windows registry queries 2025-07-09 11:16:53 -07:00
AuthTypes.ts fix missing sign in button 2025-05-28 19:41:36 -07:00
client.ts Fix: Refactor dependency injection for settings and clients 2025-09-03 09:15:47 -04:00
env.ts enter license key in VS Code 2025-06-02 22:02:27 -07:00
PolicySingleton.ts feat: Respect Org Policies (#7087) 2025-08-11 19:20:07 -07:00
schema.ts remove free trial provider 2025-05-26 17:42:05 -07:00
TeamAnalytics.ts analytics config p2 2025-02-04 12:08:55 -08:00