@@ -18,12 +18,6 @@ const enum Constants {
18
18
*/
19
19
MaxLineLength = 2000 ,
20
20
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
-
27
21
/**
28
22
* The maximum length of a link to resolve against the file system. This limit is put in place
29
23
* to avoid sending excessive data when remote connections are in place.
@@ -68,7 +62,6 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
68
62
return [ ] ;
69
63
}
70
64
71
- let stringIndex = - 1 ;
72
65
73
66
this . _logService . trace ( 'terminalMultiLineLinkDetector#detect text' , text ) ;
74
67
@@ -92,7 +85,6 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
92
85
continue ;
93
86
}
94
87
95
- // TODO: Log more info?
96
88
this . _logService . trace ( 'terminalMultiLineLinkDetector#detect candidates' , link ) ;
97
89
98
90
// Scan up looking for the first line that could be a path
@@ -124,11 +116,10 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
124
116
}
125
117
126
118
// Convert the entire line's text string index into a wrapped buffer range
127
- stringIndex = text . indexOf ( link ) ;
128
119
const bufferRange = convertLinkRangeToBuffer ( lines , this . xterm . cols , {
129
- startColumn : stringIndex + 1 ,
120
+ startColumn : 1 ,
130
121
startLineNumber : 1 ,
131
- endColumn : stringIndex + 1 + text . length + 1 ,
122
+ endColumn : 1 + text . length ,
132
123
endLineNumber : 1
133
124
} , startLine ) ;
134
125
@@ -139,6 +130,7 @@ export class TerminalMultiLineLinkDetector implements ITerminalLinkDetector {
139
130
startLineNumber : parseInt ( line ) ,
140
131
startColumn : col ? parseInt ( col ) : 0
141
132
} ,
133
+ disableTrimColon : true ,
142
134
bufferRange : bufferRange ,
143
135
type
144
136
} ;
0 commit comments