Skip to content

Commit 32c0c74

Browse files
committed
Extend multi-line link to whole line
1 parent 3622f30 commit 32c0c74

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/workbench/contrib/terminalContrib/links/browser/terminalMultiLineLinkDetector.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,12 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
125125
type = TerminalBuiltinLinkType.LocalFile;
126126
}
127127

128-
// TODO: Extend link to whole line
129-
// Convert the link text's string index into a wrapped buffer range
128+
// Convert the entire line's text string index into a wrapped buffer range
130129
stringIndex = text.indexOf(link);
131130
const bufferRange = convertLinkRangeToBuffer(lines, this.xterm.cols, {
132131
startColumn: stringIndex + 1,
133132
startLineNumber: 1,
134-
endColumn: stringIndex + link.length + 1,
133+
endColumn: stringIndex + 1 + text.length + 1,
135134
endLineNumber: 1
136135
}, startLine);
137136

0 commit comments

Comments
 (0)