@@ -18,12 +18,6 @@ const enum Constants {
1818 */
1919 MaxLineLength = 2000 ,
2020
21- /**
22- * The maximum number of links in a line to resolve against the file system. This limit is put
23- * in place to avoid sending excessive data when remote connections are in place.
24- */
25- MaxResolvedLinksInLine = 10 ,
26-
2721 /**
2822 * The maximum length of a link to resolve against the file system. This limit is put in place
2923 * to avoid sending excessive data when remote connections are in place.
@@ -68,7 +62,6 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
6862 return [ ] ;
6963 }
7064
71- let stringIndex = - 1 ;
7265
7366 this . _logService . trace ( 'terminalMultiLineLinkDetector#detect text' , text ) ;
7467
@@ -92,7 +85,6 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
9285 continue ;
9386 }
9487
95- // TODO: Log more info?
9688 this . _logService . trace ( 'terminalMultiLineLinkDetector#detect candidates' , link ) ;
9789
9890 // Scan up looking for the first line that could be a path
@@ -124,11 +116,10 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
124116 }
125117
126118 // Convert the entire line's text string index into a wrapped buffer range
127- stringIndex = text . indexOf ( link ) ;
128119 const bufferRange = convertLinkRangeToBuffer ( lines , this . xterm . cols , {
129- startColumn : stringIndex + 1 ,
120+ startColumn : 1 ,
130121 startLineNumber : 1 ,
131- endColumn : stringIndex + 1 + text . length + 1 ,
122+ endColumn : 1 + text . length ,
132123 endLineNumber : 1
133124 } , startLine ) ;
134125
@@ -139,6 +130,7 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
139130 startLineNumber : parseInt ( line ) ,
140131 startColumn : col ? parseInt ( col ) : 0
141132 } ,
133+ disableTrimColon : true ,
142134 bufferRange : bufferRange ,
143135 type
144136 } ;
0 commit comments