Browse Source

Adds decoration for merging status

main
Eric Amodio 1 year ago
parent
commit
764590138a
3 changed files with 4 additions and 2 deletions
  1. +1
    -1
      src/views/nodes/branchTrackingStatusNode.ts
  2. +2
    -1
      src/views/nodes/mergeStatusNode.ts
  3. +1
    -0
      src/views/viewDecorationProvider.ts

+ 1
- 1
src/views/nodes/branchTrackingStatusNode.ts View File

@ -1,4 +1,4 @@
import { MarkdownString, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, Uri, window } from 'vscode';
import { MarkdownString, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, window } from 'vscode';
import type { Colors } from '../../constants';
import { GitUri } from '../../git/gitUri';
import type { GitBranch, GitTrackingState } from '../../git/models/branch';

+ 2
- 1
src/views/nodes/mergeStatusNode.ts View File

@ -1,4 +1,4 @@
import { MarkdownString, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState } from 'vscode';
import { MarkdownString, ThemeColor, ThemeIcon, TreeItem, TreeItemCollapsibleState, Uri } from 'vscode';
import type { Colors } from '../../constants';
import { GitUri } from '../../git/gitUri';
import type { GitBranch } from '../../git/models/branch';
@ -75,6 +75,7 @@ export class MergeStatusNode extends ViewNode<'merge-status', ViewsWithCommits>
markdown.isTrusted = true;
item.tooltip = markdown;
item.resourceUri = Uri.parse(`gitlens-view://status/merging${hasConflicts ? '/conflicts' : ''}`);
return item;
}

+ 1
- 0
src/views/viewDecorationProvider.ts View File

@ -238,6 +238,7 @@ export class ViewFileDecorationProvider implements FileDecorationProvider, Dispo
switch (status) {
case 'rebasing':
case 'merging':
if (conflicts) {
return {
badge: '!',

Loading…
Cancel
Save