Update key names in secretStorage

- Replace "devchat_version_old" with "DevChatVersionOld".
- Update related variable names and function calls.
This commit is contained in:
bobo.yang 2023-05-28 14:03:03 +08:00
parent 52ae15bf4c
commit f326cf9ef3

View File

@ -174,10 +174,10 @@ function activate(context: vscode.ExtensionContext) {
let devchatStatus = '';
let apiKeyStatus = '';
setInterval(async () => {
const versionOld = await secretStorage.get("devchat_version_old");
const versionOld = await secretStorage.get("DevChatVersionOld");
const versionNew = extensionVersion;
const versionChanged = versionOld !== versionNew;
await secretStorage.store("devchat_version_old", versionNew!);
await secretStorage.store("DevChatVersionOld", versionNew!);
// status item has three status type
// 1. not in a folder