Co-authored-by: Sandeep Somavarapu <sasomava@microsoft.com>
This commit is contained in:
Alan Ren
2023-05-08 15:49:00 -07:00
committed by GitHub
parent f605a3c644
commit a97d882e3c

View File

@@ -383,10 +383,10 @@ class MarkerWidget extends Disposable {
const codeMatches = filterData && filterData.codeMatches || [];
code.set(marker.code, codeMatches);
} else {
// TODO@sandeep: these widgets should be disposed
const container = dom.$('.marker-code');
const code = new HighlightedLabel(container);
new Link(parent, { href: marker.code.target.toString(), label: container, title: marker.code.target.toString() }, undefined, this._openerService);
const link = marker.code.target.toString(true);
this.disposables.add(new Link(parent, { href: link, label: container, title: link }, undefined, this._openerService));
const codeMatches = filterData && filterData.codeMatches || [];
code.set(marker.code.value, codeMatches);
}