Kaynağa Gözat

Fixes graph dblclick not overriding pinning

main
Eric Amodio 1 yıl önce
ebeveyn
işleme
8e3fb97c1e
1 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  1. +4
    -6
      src/webviews/commitDetails/commitDetailsWebview.ts

+ 4
- 6
src/webviews/commitDetails/commitDetailsWebview.ts Dosyayı Görüntüle

@ -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;

Yükleniyor…
İptal
Kaydet