Skip to content

Commit

Permalink
fix #36563
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Oct 30, 2017
1 parent 7d6ef47 commit be68d85
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,18 @@
}

.monaco-editor .reference-zone-widget .ref-tree .reference-file {
display: flex;
justify-content: space-between;
align-items: center;
display: inline-flex;
width: 100%;
height: 100%;
}

.monaco-editor .reference-zone-widget .monaco-count-badge {
margin-right: .5em;
height: 15px;
padding: 0 .5em .5em .5em
.monaco-editor .reference-zone-widget .ref-tree .reference-file .count {
margin-right: 12px;
margin-left: auto;
}

/* High Contrast Theming */

.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file {
font-weight: bold;
display: flex;
justify-content: space-between;
}
Original file line number Diff line number Diff line change
Expand Up @@ -355,11 +355,15 @@ class FileReferencesTemplate {
const parent = document.createElement('div');
dom.addClass(parent, 'reference-file');
container.appendChild(parent);

this.file = new FileLabel(parent, URI.parse('no:file'), this._contextService, this._environmentService);
this.badge = new CountBadge(parent);

this.badge = new CountBadge($('.count').appendTo(parent).getHTMLElement());
const styler = attachBadgeStyler(this.badge, themeService);
this.dispose = () => styler.dispose();

this.dispose = () => {
this.file.dispose();
styler.dispose();
};
}

set(element: FileReferences) {
Expand Down

0 comments on commit be68d85

Please sign in to comment.