Browse Source

Fixes dbl-click not showing the Commit Details

main
Eric Amodio 1 year ago
parent
commit
3f44bc4fbd
2 changed files with 2 additions and 1 deletions
  1. +1
    -0
      src/plus/webviews/graph/graphWebview.ts
  2. +1
    -1
      src/webviews/commitDetails/commitDetailsWebviewView.ts

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

@ -660,6 +660,7 @@ export class GraphWebview extends WebviewBase {
{
commit: commit,
preserveFocus: e.preserveFocus,
preserveVisibility: false,
},
{
source: this.id,

+ 1
- 1
src/webviews/commitDetails/commitDetailsWebviewView.ts View File

@ -108,6 +108,7 @@ export class CommitDetailsWebviewView extends WebviewViewBase
this.disposables.push(
configuration.onDidChange(this.onConfigurationChanged, this),
configuration.onDidChangeAny(this.onAnyConfigurationChanged, this),
this.container.events.on('commit:selected', debounce(this.onCommitSelected, 250), this),
);
}
@ -256,7 +257,6 @@ export class CommitDetailsWebviewView extends WebviewViewBase
const { lineTracker } = this.container;
this._visibilityDisposable = Disposable.from(
lineTracker.subscribe(this, lineTracker.onDidChangeActiveLines(this.onActiveLinesChanged, this)),
this.container.events.on('commit:selected', debounce(this.onCommitSelected, 250), this),
);
const commit = this._pendingContext?.commit ?? this.getBestCommitOrStash();

Loading…
Cancel
Save