Procházet zdrojové kódy

Fixes #1545: adds missing branch compare actions

main
Eric Amodio před 3 roky
rodič
revize
d1bacafe31
2 změnil soubory, kde provedl 7 přidání a 6 odebrání
  1. +1
    -0
      CHANGELOG.md
  2. +6
    -6
      src/views/nodes/compareBranchNode.ts

+ 1
- 0
CHANGELOG.md Zobrazit soubor

@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
### Fixed
- Fixes [#1545](https://github.com/eamodio/vscode-gitlens/issues/1545) - Missing branch comparison controls in versions 11.5.0 and 11.5.1
- Fixes [#1548](https://github.com/eamodio/vscode-gitlens/issues/1548) - "Don't show again" on debug log warning doesn't work
- Fixes [#1449](https://github.com/eamodio/vscode-gitlens/issues/1449) - Configured remotes not showing up in quickpick menu when opening commit on remote
- Fixes issues where auto-linking of GitHub 3rd party issue links didn't always work

+ 6
- 6
src/views/nodes/compareBranchNode.ts Zobrazit soubor

@ -139,7 +139,6 @@ export class CompareBranchNode extends ViewNode
getTreeItem(): TreeItem {
let state: TreeItemCollapsibleState;
let label;
let description;
let tooltip;
if (this._compareWith == null) {
label = `Compare ${
@ -159,12 +158,12 @@ export class CompareBranchNode extends ViewNode
}
const item = new TreeItem(label, state);
item.id = this.id;
item.contextValue = `${ContextValues.CompareBranch}${this.branch.current ? '+current' : ''}+${
this.comparisonType
}${this._compareWith == null ? '' : '+comparing'}${this.root ? '+root' : ''}`;
if (this._compareWith == null) {
item.id = this.id;
item.contextValue = `${ContextValues.CompareBranch}${this.branch.current ? '+current' : ''}+${
this.comparisonType
}${this._compareWith == null ? '' : '+comparing'}${this.root ? '+root' : ''}`;
item.description = description;
item.command = {
title: `Compare ${this.branch.name}${this.compareWithWorkingTree ? ' (working)' : ''} with${
GlyphChars.Ellipsis
@ -173,6 +172,7 @@ export class CompareBranchNode extends ViewNode
arguments: [this],
};
}
item.iconPath = new ThemeIcon('git-compare');
item.tooltip = tooltip;

Načítá se…
Zrušit
Uložit