Merge from vscode ad407028575a77ea387eb7cc219b323dc017b686

This commit is contained in:
ADS Merger
2020-08-22 06:06:52 +00:00
committed by Anthony Dresser
parent 404260b8a0
commit 4ad73d381c
480 changed files with 14360 additions and 14122 deletions

View File

@@ -187,14 +187,14 @@ class Label {
if (typeof label === 'string') {
if (!this.singleLabel) {
this.container.innerHTML = '';
this.container.innerText = '';
dom.removeClass(this.container, 'multiple');
this.singleLabel = dom.append(this.container, dom.$('a.label-name', { id: options?.domId }));
}
this.singleLabel.textContent = label;
} else {
this.container.innerHTML = '';
this.container.innerText = '';
dom.addClass(this.container, 'multiple');
this.singleLabel = undefined;
@@ -250,7 +250,7 @@ class LabelWithHighlights {
if (typeof label === 'string') {
if (!this.singleLabel) {
this.container.innerHTML = '';
this.container.innerText = '';
dom.removeClass(this.container, 'multiple');
this.singleLabel = new HighlightedLabel(dom.append(this.container, dom.$('a.label-name', { id: options?.domId })), this.supportCodicons);
}
@@ -258,7 +258,7 @@ class LabelWithHighlights {
this.singleLabel.set(label, options?.matches, options?.title, options?.labelEscapeNewLines);
} else {
this.container.innerHTML = '';
this.container.innerText = '';
dom.addClass(this.container, 'multiple');
this.singleLabel = undefined;