mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
parent
3e7712b114
commit
dd737b0b5b
|
@ -338,8 +338,12 @@ export class ReplExpressionsRenderer implements tree.IRenderer {
|
|||
for (let pattern of ReplExpressionsRenderer.FILE_LOCATION_PATTERNS) {
|
||||
pattern.lastIndex = 0; // the holy grail of software development
|
||||
|
||||
var match = pattern.exec(text);
|
||||
var resource = match && URI.file(match[1]);
|
||||
const match = pattern.exec(text);
|
||||
let resource = null;
|
||||
try {
|
||||
resource = match && URI.file(match[1]);
|
||||
} catch (e) { }
|
||||
|
||||
if (resource) {
|
||||
linkContainer = document.createElement('span');
|
||||
|
||||
|
|
Loading…
Reference in a new issue