Skip to content

Commit

Permalink
add title for match, fixes microsoft#6224
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed May 10, 2016
1 parent b0bdf7b commit 174529b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vs/workbench/parts/search/browser/searchViewlet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,10 @@ class SearchRenderer extends ActionsRenderer {
elements.push(strings.escape(preview.after));
elements.push('</span>');

$('a.plain').innerHtml(elements.join(strings.empty)).appendTo(domElement);
$('a.plain')
.innerHtml(elements.join(strings.empty))
.title((preview.before + preview.inside + preview.after).trim().substr(0, 999))
.appendTo(domElement);
}

return null;
Expand Down

0 comments on commit 174529b

Please sign in to comment.