From 2d43dbded191cb115ac7656b488d00278b3c7acb Mon Sep 17 00:00:00 2001 From: Andrew Pareles Date: Thu, 23 Jan 2025 00:18:13 -0800 Subject: [PATCH] write version --- src/vs/workbench/contrib/void/browser/chatThreadService.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vs/workbench/contrib/void/browser/chatThreadService.ts b/src/vs/workbench/contrib/void/browser/chatThreadService.ts index 24f10d01..8c9ad0e5 100644 --- a/src/vs/workbench/contrib/void/browser/chatThreadService.ts +++ b/src/vs/workbench/contrib/void/browser/chatThreadService.ts @@ -87,6 +87,9 @@ const newThreadObject = () => { } satisfies ChatThreads[string] } +const THREAD_VERSION_KEY = 'void.chatThreadVersion' +const THREAD_VERSION = 'v1' + const THREAD_STORAGE_KEY = 'void.chatThreadStorage' export interface IChatThreadService { @@ -139,6 +142,9 @@ class ChatThreadService extends Disposable implements IChatThreadService { // always be in a thread this.openNewThread() + + // for now just write the version, anticipating bigger changes in the future where we'll want to access this + this._storageService.store(THREAD_VERSION_KEY, THREAD_VERSION, StorageScope.APPLICATION, StorageTarget.USER) }