Browse Source

Adds missing registration on graph location change

main
Eric Amodio 1 year ago
parent
commit
458def6f29
2 changed files with 10 additions and 1 deletions
  1. +1
    -1
      package.json
  2. +9
    -0
      src/container.ts

+ 1
- 1
package.json View File

@ -13109,7 +13109,7 @@
"when": "!gitlens:disabled && gitlens:plus:enabled && config.gitlens.graph.experimental.location == view",
"contextualTitle": "GitLens",
"icon": "$(gitlens-graph)",
"visibility": "hidden"
"visibility": "collapsed"
},
{
"id": "gitlens.views.contributors",

+ 9
- 0
src/container.ts View File

@ -306,6 +306,15 @@ export class Container {
if (configuration.changed(e, 'mode')) {
this.ensureModeApplied();
}
if (configuration.changed(e, 'graph.experimental.location')) {
if (configuration.get('graph.experimental.location') === 'view') {
this._graphView = registerGraphWebviewView(this._webviews);
} else {
this._graphView?.dispose();
this._graphView = undefined;
}
}
}
private readonly _actionRunners: ActionRunners;

Loading…
Cancel
Save