MCPcopy
hub / github.com/continuedev/continue / triggerConfigUpdate

Function triggerConfigUpdate

gui/src/util/test/config.ts:15–33  ·  view source on GitHub ↗
({
  store,
  ideMessenger,
  editConfig,
  newProfileId,
}: TestConfigUpdateParams)

Source from the content-addressed store, hash-verified

13}
14
15export function triggerConfigUpdate({
16 store,
17 ideMessenger,
18 editConfig,
19 newProfileId,
20}: TestConfigUpdateParams) {
21 const state = store.getState();
22 ideMessenger.mockMessageToWebview("configUpdate", {
23 profileId: newProfileId ?? state.profiles.selectedProfileId,
24 profiles: state.profiles.profiles,
25 result: {
26 config: editConfig
27 ? editConfig(copyOf(state.config.config))
28 : state.config.config,
29 configLoadInterrupted: false,
30 errors: [],
31 },
32 });
33}
34
35export function addAndSelectChatModel(
36 store: EnhancedStore,

Callers 1

addAndSelectChatModelFunction · 0.85

Calls 4

copyOfFunction · 0.90
editConfigFunction · 0.85
mockMessageToWebviewMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected