Commit 0e1e365f authored by Florian Dageförde's avatar Florian Dageförde Committed by Tomas Vik (OOO back on 2026-08-31)
Browse files

feat: Show project folder as tooltip in Merge Request View

parent 29a15a4d
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -30,5 +30,11 @@ describe('RepositoryItemModel', () => {
    it('should have project icon', () => {
      expect(item.getTreeItem().iconPath).toEqual(new vscode.ThemeIcon('project'));
    });

    it('should have project folder as a tooltip', () => {
      expect(item.getTreeItem().tooltip).toBe(
        projectInRepository.pointer.repository.rawRepository.rootUri.path,
      );
    });
  });
});
+3 −0
Original line number Diff line number Diff line
@@ -32,6 +32,9 @@ export class ProjectItemModel extends ItemModel {
      this.projectInRepository.initializationType === 'selected' ? 'selected-project' : '';
    const { Expanded, Collapsed } = vscode.TreeItemCollapsibleState;
    item.collapsibleState = this.#startExpanded ? Expanded : Collapsed;
    const projectFolderPath =
      this.projectInRepository.pointer.repository.rawRepository.rootUri.path;
    item.tooltip = projectFolderPath;
    return item;
  }