提交 da4cfffd 编写于 作者: D danielfrankcom

replViewer changes per code review

上级 85969a4d
......@@ -316,6 +316,7 @@ export class ReplExpressionsRenderer implements IRenderer {
currentPos++;
// Look for a known sequence terminating character.
if (char.match(/^[ABCDHIJKfhmpsu]$/)) {
sequenceFound = true;
break;
......@@ -350,14 +351,13 @@ export class ReplExpressionsRenderer implements IRenderer {
} else if ((code >= 30 && code <= 37) || (code >= 90 && code <= 97)) {
styleNames.push('code-fg-' + code);
} else if (code === 39) {
// Remove all foreground colour codes
styleNames = styleNames.filter(style => !style.match(/^code-fg-\d+$/));
}
}
} else if (ansiSequence.match(/^.*[ABCDHIJKfhmpsu]$/)) {
// Unsupported sequence so simply hide it.
} else {
sequenceFound = false;
// Unsupported sequence so simply hide it.
}
}
......@@ -397,7 +397,7 @@ export class ReplExpressionsRenderer implements IRenderer {
return;
}
const content: string | HTMLElement = this.linkDetector.handleLinks(stringContent);
const content = this.linkDetector.handleLinks(stringContent);
let container: HTMLElement;
if (typeof content === 'string') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册