Improve comment

This commit is contained in:
Daniel Imms
2022-12-20 15:01:30 -08:00
parent f28c21eb77
commit 7b8ad8c0b4
+2 -2
View File
@@ -309,8 +309,8 @@ export class Linkifier2 extends Disposable implements ILinkifier2 {
}
});
// Listen to viewport changes re-render the link under the cursor when the viewport line
// changes
// Listen to viewport changes to re-render the link under the cursor (only when the line the
// link is on changes)
if (this._renderService) {
this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(e => {
// Sanity check, this shouldn't happen in practice as this listener would be disposed