Skip to content

Commit

Permalink
fix: call _refresh() method during initialization and comment out cle…
Browse files Browse the repository at this point in the history
…anup to prevent premature indicator destruction
  • Loading branch information
ZanzyTHEbar committed Feb 18, 2025
1 parent 412148e commit c7ec337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gnome-extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
this._startRefresh();
});

this._refresh();
this._initializeWorkspaces();
}

Expand All @@ -116,7 +117,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
GLib.source_remove(this._refreshTimeout);
this._refreshTimeout = null;
}

if (this._indicator) {
this._indicator.destroy();
this._indicator = undefined;
Expand All @@ -140,7 +141,7 @@ export default class VSCodeWorkspacesExtension extends Extension {

private _initializeWorkspaces() {
this._log('Initializing workspaces');
this._cleanup();
//this._cleanup();

for (const editor of this._editors) {
const dir = Gio.File.new_for_path(editor.workspacePath);
Expand Down

0 comments on commit c7ec337

Please sign in to comment.