Skip to content

Commit c7ec337

Browse files
committed
fix: call _refresh() method during initialization and comment out cleanup to prevent premature indicator destruction
1 parent 412148e commit c7ec337

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

gnome-extension/src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
107107
this._startRefresh();
108108
});
109109

110+
this._refresh();
110111
this._initializeWorkspaces();
111112
}
112113

@@ -116,7 +117,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
116117
GLib.source_remove(this._refreshTimeout);
117118
this._refreshTimeout = null;
118119
}
119-
120+
120121
if (this._indicator) {
121122
this._indicator.destroy();
122123
this._indicator = undefined;
@@ -140,7 +141,7 @@ export default class VSCodeWorkspacesExtension extends Extension {
140141

141142
private _initializeWorkspaces() {
142143
this._log('Initializing workspaces');
143-
this._cleanup();
144+
//this._cleanup();
144145

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

0 commit comments

Comments
 (0)