Skip to content

Commit b1ca71f

Browse files
committed
refactor: clear favorites during extension cleanup for improved resource management
1 parent 3533a34 commit b1ca71f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gnome-extension/src/extension.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
120120
this._indicator.destroy();
121121
this._indicator = undefined;
122122
}
123+
123124
this.gsettings = undefined;
124125
this._log(`VSCode Workspaces Extension disabled`);
125126
}
@@ -145,6 +146,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
145146
// Clean up only the cache; leave persistent settings intact
146147
this._workspaces.clear();
147148
this._recentWorkspaces.clear();
149+
this._favorites.clear();
148150
this._log(`VSCode Workspaces Extension cleaned up`);
149151
}
150152

0 commit comments

Comments
 (0)