debt - drop state cleanup now (#208972)

This commit is contained in:
Benjamin Pasero 2024-03-28 07:39:56 +01:00 committed by GitHub
parent f0b4597c2c
commit 1cb05f8093
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,8 +47,7 @@ export class StatusbarViewModel extends Disposable {
const hiddenRaw = this.storageService.get(StatusbarViewModel.HIDDEN_ENTRIES_KEY, StorageScope.PROFILE);
if (hiddenRaw) {
try {
const hiddenArray: string[] = JSON.parse(hiddenRaw);
this.hidden = new Set(hiddenArray.filter(entry => !entry.startsWith('status.workspaceTrust.'))); // TODO@bpasero remove this migration eventually
this.hidden = new Set(JSON.parse(hiddenRaw));
} catch (error) {
// ignore parsing errors
}