提交 6650fda9 编写于 作者: I isidor

debug: "console was cleared" when auto cleared

上级 1c2f7668
......@@ -135,7 +135,11 @@
background: url('clear-repl-inverse.svg') center center no-repeat;
}
/* Output coloring */
/* Output coloring and styling */
.monaco-workbench .repl .repl-tree .monaco-tree .monaco-tree-row > .content > .output.expression > .ignore {
font-style: italic;
}
.vs .monaco-workbench .repl .repl-tree .monaco-tree .monaco-tree-row > .content > .output.expression > .warn {
color: #cd9731;
......@@ -224,4 +228,4 @@
.monaco-workbench .repl .repl-tree .monaco-tree .monaco-tree-row > .content > .output.expression a {
text-decoration: underline;
cursor: pointer;
}
\ No newline at end of file
}
......@@ -674,6 +674,7 @@ export class DebugService implements debug.IDebugService {
if (typeof value === 'string' && value.indexOf(clearAnsiSequence) >= 0) {
// [2J is the ansi escape sequence for clearing the display http://ascii-table.com/ansi-escape-sequences.php
this.model.removeReplExpressions();
this.model.appendToRepl(nls.localize('consoleCleared', "Console was cleared"), severity.Ignore);
value = value.substr(value.indexOf(clearAnsiSequence) + clearAnsiSequence.length);
}
......
......@@ -256,7 +256,7 @@ export class ReplExpressionsRenderer implements IRenderer {
let result = handleANSIOutput(element.value, this.linkDetector);
templateData.value.appendChild(result);
dom.addClass(templateData.value, (element.severity === severity.Warning) ? 'warn' : (element.severity === severity.Error) ? 'error' : 'info');
dom.addClass(templateData.value, (element.severity === severity.Warning) ? 'warn' : (element.severity === severity.Error) ? 'error' : (element.severity === severity.Ignore) ? 'ignore' : 'info');
templateData.source.textContent = element.sourceData ? `${element.sourceData.source.name}:${element.sourceData.lineNumber}` : '';
templateData.source.title = element.sourceData ? element.sourceData.source.uri.toString() : '';
templateData.getReplElementSource = () => element.sourceData;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册