Browse Source

Listens for repos changes for the graph

main
Eric Amodio 2 years ago
parent
commit
c91307f2a1
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      src/extension.ts
  2. +1
    -0
      src/plus/webviews/graph/graphWebview.ts

+ 1
- 0
src/extension.ts View File

@ -190,6 +190,7 @@ export async function activate(context: ExtensionContext): Promise
export function deactivate() {
// nothing to do
Logger.log('GitLens deactivated');
}
// async function migrateSettings(context: ExtensionContext, previousVersion: string | undefined) {

+ 1
- 0
src/plus/webviews/graph/graphWebview.ts View File

@ -383,6 +383,7 @@ export class GraphWebview extends WebviewBase {
this._theme = window.activeColorTheme;
return [
this.container.subscription.onDidChange(this.onSubscriptionChanged, this),
this.container.git.onDidChangeRepositories(() => void this.refresh(true)),
window.onDidChangeActiveColorTheme(this.onThemeChanged, this),
{ dispose: () => void this._repositoryEventsDisposable?.dispose() },
];

||||||
x
 
000:0
Loading…
Cancel
Save