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

Function setLocalStorage

gui/src/util/localStorage.ts:46–58  ·  view source on GitHub ↗
(
  key: T,
  value: LocalStorageTypes[T],
)

Source from the content-addressed store, hash-verified

44}
45
46export function setLocalStorage<T extends keyof LocalStorageTypes>(
47 key: T,
48 value: LocalStorageTypes[T],
49): void {
50 localStorage.setItem(key, JSON.stringify(value));
51
52 // Dispatch custom event to notify current tab listeners
53 window.dispatchEvent(
54 new CustomEvent("localStorageChange", {
55 detail: { key, value },
56 }),
57 );
58}

Callers 11

handleDismissFunction · 0.90
isNewUserOnboardingFunction · 0.90
OnboardingCardFunction · 0.90
closeFunction · 0.90
submitOnboardingFunction · 0.90
ChatFunction · 0.90
ExploreDialogWatcherFunction · 0.90
UserSettingsSectionFunction · 0.90
addFunction · 0.90
ParallelListenersFunction · 0.90

Calls 1

setItemMethod · 0.65

Tested by

no test coverage detected