Loading src/desktop/tree_view/items/project_item_model.test.ts +6 −0 Original line number Diff line number Diff line Loading @@ -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, ); }); }); }); src/desktop/tree_view/items/project_item_model.ts +3 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading Loading
src/desktop/tree_view/items/project_item_model.test.ts +6 −0 Original line number Diff line number Diff line Loading @@ -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, ); }); }); });
src/desktop/tree_view/items/project_item_model.ts +3 −0 Original line number Diff line number Diff line Loading @@ -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; } Loading