From 3228e7a63ca09875a0e2fa4377aca9bba2ba78c1 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 13 Jun 2023 10:53:08 -0400 Subject: [PATCH] Updates missing repo description & decoration --- src/views/nodes/workspaceMissingRepositoryNode.ts | 2 +- src/views/viewDecorationProvider.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/nodes/workspaceMissingRepositoryNode.ts b/src/views/nodes/workspaceMissingRepositoryNode.ts index 7dbd78c..263939d 100644 --- a/src/views/nodes/workspaceMissingRepositoryNode.ts +++ b/src/views/nodes/workspaceMissingRepositoryNode.ts @@ -46,7 +46,7 @@ export class WorkspaceMissingRepositoryNode extends ViewNode { getTreeItem(): TreeItem { const item = new TreeItem(this.name, TreeItemCollapsibleState.None); item.id = this.id; - item.description = 'Unable to find repo, please locate'; + item.description = 'missing'; item.tooltip = new MarkdownString(`${this.name}\n\nRepository could not be found`); item.contextValue = ContextValues.WorkspaceMissingRepository; item.iconPath = new ThemeIcon( diff --git a/src/views/viewDecorationProvider.ts b/src/views/viewDecorationProvider.ts index 793a0f0..a83efa9 100644 --- a/src/views/viewDecorationProvider.ts +++ b/src/views/viewDecorationProvider.ts @@ -55,6 +55,7 @@ export class ViewFileDecorationProvider implements FileDecorationProvider, Dispo if (status === 'missing') { return { + badge: '?', color: new ThemeColor('gitlens.decorations.workspaceRepoMissingForegroundColor' satisfies Colors), tooltip: '', };