|
@ -4,6 +4,7 @@ import { UriComparer } from '../../comparers'; |
|
|
import { GlyphChars } from '../../constants'; |
|
|
import { GlyphChars } from '../../constants'; |
|
|
import { Container } from '../../container'; |
|
|
import { Container } from '../../container'; |
|
|
import { GitCommitish, GitUri } from '../../git/gitService'; |
|
|
import { GitCommitish, GitUri } from '../../git/gitService'; |
|
|
|
|
|
import { Logger } from '../../logger'; |
|
|
import { BranchesAndTagsQuickPick, CommandQuickPickItem } from '../../quickpicks'; |
|
|
import { BranchesAndTagsQuickPick, CommandQuickPickItem } from '../../quickpicks'; |
|
|
import { debug, Functions, gate, log } from '../../system'; |
|
|
import { debug, Functions, gate, log } from '../../system'; |
|
|
import { LinesChangeEvent } from '../../trackers/gitLineTracker'; |
|
|
import { LinesChangeEvent } from '../../trackers/gitLineTracker'; |
|
@ -85,6 +86,8 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode |
|
|
@gate() |
|
|
@gate() |
|
|
@debug() |
|
|
@debug() |
|
|
async refresh(reset: boolean = false) { |
|
|
async refresh(reset: boolean = false) { |
|
|
|
|
|
const cc = Logger.getCorrelationContext(); |
|
|
|
|
|
|
|
|
if (reset) { |
|
|
if (reset) { |
|
|
this._uri = unknownGitUri; |
|
|
this._uri = unknownGitUri; |
|
|
this._selection = undefined; |
|
|
this._selection = undefined; |
|
@ -105,6 +108,9 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode |
|
|
this._selection = undefined; |
|
|
this._selection = undefined; |
|
|
this.resetChild(); |
|
|
this.resetChild(); |
|
|
|
|
|
|
|
|
|
|
|
if (cc !== undefined) { |
|
|
|
|
|
cc.exitDetails = `, uri=${Logger.toLoggable(this._uri)}`; |
|
|
|
|
|
} |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -112,6 +118,9 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode |
|
|
UriComparer.equals(editor!.document.uri, this.uri) && |
|
|
UriComparer.equals(editor!.document.uri, this.uri) && |
|
|
(this._selection !== undefined && editor.selection.isEqual(this._selection)) |
|
|
(this._selection !== undefined && editor.selection.isEqual(this._selection)) |
|
|
) { |
|
|
) { |
|
|
|
|
|
if (cc !== undefined) { |
|
|
|
|
|
cc.exitDetails = `, uri=${Logger.toLoggable(this._uri)}`; |
|
|
|
|
|
} |
|
|
return true; |
|
|
return true; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -129,6 +138,9 @@ export class LineHistoryTrackerNode extends SubscribeableViewNode |
|
|
this._selection = editor.selection; |
|
|
this._selection = editor.selection; |
|
|
this.resetChild(); |
|
|
this.resetChild(); |
|
|
|
|
|
|
|
|
|
|
|
if (cc !== undefined) { |
|
|
|
|
|
cc.exitDetails = `, uri=${Logger.toLoggable(this._uri)}`; |
|
|
|
|
|
} |
|
|
return false; |
|
|
return false; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|