Skip to content

Commit 4fd9052

Browse files
authored
Refresh file browser on head change (#950) (#964)
1 parent c5e09cb commit 4fd9052

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,12 @@ async function activate(
143143
gitExtension.pathRepository = change.newValue;
144144
}
145145
);
146+
147+
// Whenever the `HEAD` of the Git repository changes, refresh the file browser
148+
gitExtension.headChanged.connect(() => {
149+
filebrowser.model.refresh();
150+
});
151+
146152
// Whenever a user adds/renames/saves/deletes/modifies a file within the lab environment, refresh the Git status
147153
app.serviceManager.contents.fileChanged.connect(() =>
148154
gitExtension.refreshStatus()

0 commit comments

Comments
 (0)