Skip to content

Commit 1713bd7

Browse files
committed
remove scm repository description
1 parent 8efd882 commit 1713bd7

2 files changed

Lines changed: 1 addition & 11 deletions

File tree

src/vs/workbench/contrib/scm/browser/media/scm.css

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
text-decoration: underline;
5353
}
5454

55-
.scm-viewlet .scm-provider > .label > .description {
56-
opacity: 0.7;
57-
margin-left: 0.5em;
58-
font-size: 0.9em;
59-
}
60-
6155
.scm-viewlet .scm-provider > .status {
6256
flex: 1;
6357
display: flex;

src/vs/workbench/contrib/scm/browser/scmViewPane.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ interface ISCMLayout {
150150

151151
interface RepositoryTemplate {
152152
readonly name: HTMLElement;
153-
readonly description: HTMLElement;
154153
readonly countContainer: HTMLElement;
155154
readonly count: CountBadge;
156155
readonly statusActionBar: ActionBar;
@@ -180,7 +179,6 @@ class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMRepository, Fu
180179
append(provider, $('span.icon.codicon.codicon-repo'));
181180
const label = append(provider, $('.label'));
182181
const name = append(label, $('span.name'));
183-
const description = append(label, $('span.description'));
184182
const status = append(provider, $('.status'));
185183
const statusActionBar = new ActionBar(status, { actionViewItemProvider: a => new StatusBarActionViewItem(a as StatusBarAction) });
186184
const actions = append(provider, $('.actions'));
@@ -191,7 +189,7 @@ class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMRepository, Fu
191189
const disposable = Disposable.None;
192190
const templateDisposable = combinedDisposable(statusActionBar, toolBar, badgeStyler);
193191

194-
return { name, description, countContainer, count, statusActionBar, toolBar, disposable, templateDisposable };
192+
return { name, countContainer, count, statusActionBar, toolBar, disposable, templateDisposable };
195193
}
196194

197195
renderElement(node: ITreeNode<ISCMRepository, FuzzyScore>, index: number, templateData: RepositoryTemplate, height: number | undefined): void {
@@ -202,10 +200,8 @@ class RepositoryRenderer implements ICompressibleTreeRenderer<ISCMRepository, Fu
202200

203201
if (repository.provider.rootUri) {
204202
templateData.name.textContent = basename(repository.provider.rootUri);
205-
templateData.description.textContent = repository.provider.label;
206203
} else {
207204
templateData.name.textContent = repository.provider.label;
208-
templateData.description.textContent = '';
209205
}
210206

211207
const actions: IAction[] = [];

0 commit comments

Comments
 (0)