From 573d834a6b64ffe482c14b8aa1423d8af2d72d58 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Thu, 27 Jun 2024 10:41:31 +0200 Subject: [PATCH] Fix inconsistent path for changed file tooltip --- src/view/treeNodes/fileChangeNode.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/treeNodes/fileChangeNode.ts b/src/view/treeNodes/fileChangeNode.ts index 4a4b824930..5aa0f3c002 100644 --- a/src/view/treeNodes/fileChangeNode.ts +++ b/src/view/treeNodes/fileChangeNode.ts @@ -422,7 +422,7 @@ export class GitHubFileChangeNode extends TreeNode implements vscode.TreeItem { public description: string; public iconPath: vscode.ThemeIcon; public fileChangeResourceUri: vscode.Uri; - + public readonly tooltip: string; public command: vscode.Command; constructor( @@ -437,6 +437,7 @@ export class GitHubFileChangeNode extends TreeNode implements vscode.TreeItem { super(); const scheme = isLocal ? Schemes.GitPr : Schemes.GithubPr; this.label = fileName; + this.tooltip = fileName; this.iconPath = vscode.ThemeIcon.File; this.fileChangeResourceUri = vscode.Uri.file(fileName).with({ scheme,