Skip to content

Commit

Permalink
refactor: clear favorites during extension cleanup for improved resou…
Browse files Browse the repository at this point in the history
…rce management
  • Loading branch information
ZanzyTHEbar committed Feb 19, 2025
1 parent 3533a34 commit b1ca71f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gnome-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
this._indicator.destroy();
this._indicator = undefined;
}

this.gsettings = undefined;
this._log(`VSCode Workspaces Extension disabled`);
}
Expand All @@ -145,6 +146,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
// Clean up only the cache; leave persistent settings intact
this._workspaces.clear();
this._recentWorkspaces.clear();
this._favorites.clear();
this._log(`VSCode Workspaces Extension cleaned up`);
}

Expand Down

0 comments on commit b1ca71f

Please sign in to comment.