Merge pull request #121 from covespace/replace_version_key

Update key names in secretStorage
This commit is contained in:
boob.yang 2023-05-28 14:10:05 +08:00 committed by GitHub
commit e32fede416
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,11 +174,11 @@ 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
// 2. dependence is invalid