Skip to content

Commit f23bae0

Browse files
authored
Fix inconsistent path for changed file tooltip (#6067)
1 parent 7693b1f commit f23bae0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/view/treeNodes/fileChangeNode.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ export class GitHubFileChangeNode extends TreeNode implements vscode.TreeItem {
422422
public description: string;
423423
public iconPath: vscode.ThemeIcon;
424424
public fileChangeResourceUri: vscode.Uri;
425-
425+
public readonly tooltip: string;
426426
public command: vscode.Command;
427427

428428
constructor(
@@ -437,6 +437,7 @@ export class GitHubFileChangeNode extends TreeNode implements vscode.TreeItem {
437437
super();
438438
const scheme = isLocal ? Schemes.GitPr : Schemes.GithubPr;
439439
this.label = fileName;
440+
this.tooltip = fileName;
440441
this.iconPath = vscode.ThemeIcon.File;
441442
this.fileChangeResourceUri = vscode.Uri.file(fileName).with({
442443
scheme,

0 commit comments

Comments
 (0)