fix(vscode): persist model favorites (#1995)
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
import { useUIStore } from '@/stores/useUIStore';
|
import { useUIStore } from '@/stores/useUIStore';
|
||||||
import { updateDesktopSettings } from '@/lib/persistence';
|
import { updateDesktopSettings } from '@/lib/persistence';
|
||||||
import { isVSCodeRuntime } from '@/lib/desktop';
|
|
||||||
|
|
||||||
type ModelRef = { providerID: string; modelID: string };
|
type ModelRef = { providerID: string; modelID: string };
|
||||||
type ModelPrefsPayload = {
|
type ModelPrefsPayload = {
|
||||||
@@ -72,9 +71,6 @@ export const startModelPrefsAutoSave = () => {
|
|||||||
if (typeof window === 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
return () => {};
|
return () => {};
|
||||||
}
|
}
|
||||||
if (isVSCodeRuntime()) {
|
|
||||||
return () => {};
|
|
||||||
}
|
|
||||||
|
|
||||||
let timer: number | null = null;
|
let timer: number | null = null;
|
||||||
let lastSent: ModelPrefsPayload | null = null;
|
let lastSent: ModelPrefsPayload | null = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user