Quellcode durchsuchen

Fixes graph dblclick not overriding pinning

main
Eric Amodio vor 1 Jahr
Ursprung
Commit
8e3fb97c1e
1 geänderte Dateien mit 4 neuen und 6 gelöschten Zeilen
  1. +4
    -6
      src/webviews/commitDetails/commitDetailsWebview.ts

+ 4
- 6
src/webviews/commitDetails/commitDetailsWebview.ts Datei anzeigen

@ -277,13 +277,11 @@ export class CommitDetailsWebviewProvider implements WebviewProvider
this._lineTrackerDisposable?.dispose();
this._lineTrackerDisposable = undefined;
if (this._pinned || !this.host.visible) return;
if (!this.host.visible) return;
this._commitTrackerDisposable = this.container.events.on(
'commit:selected',
debounce(this.onCommitSelected, 50),
this,
);
this._commitTrackerDisposable = this.container.events.on('commit:selected', this.onCommitSelected, this);
if (this._pinned) return;
if (this.options.mode !== 'graph') {
const { lineTracker } = this.container;

Laden…
Abbrechen
Speichern